Added support for tls connections
Login/Signup/Logout implemented