fixes token integration

Adds token authentication.  Tokens expire in 7 days. If a user tries to go anywhere other than the login page, their http request is intercepted and their token, username, and expiration date are checked by our middleware.  If they are not correct, it sends them back to home page.  Otherwise, they continue on.