fix issue when token expires, now it takes you back to login
when the token has 15 min left before expiring, verify token function will create a new token with 2 more hours and then it will be send back to the front end, in the front end it will replace the old token (this only works when the user is making calls to the server, if there is inactivity then the token will expire and will need to log in again)
So far it looks good, though it might be easier to test this after merging branch 181 into it (or to dev and then here) to make sure the module file upload issues don't come from the token change.