Misc. code cleanup
Moved login/logout into it's own RESTful controller