Commented out some janky code, login now seems deterministic
Logout implemented
Connected login to the backend API, working on validating user and authenticated pages
Some code cleanup using jshint