Added server side code for signup/login/logout and utility functions