added basic authorisation, added endpoints, added keep-alive connections