Add user login, logout and register methods

Signed-off-by: Prashant Shah <pshah.mindtools@gmail.com>