Initial code for REST APIs for /signup /login /session /logout