Add redirect to register.php to go to login.php
Finish login redirects and add session support for logged in user
Add helper function files for js and php functions