refactor login/out and request methods, clean up white space, add ApiDis...

...covery