Save lastPage as a session variable and use it to redirect logins.
Update app to save userid as session variable, in addition to 4sqid. Also adds the pollvote function.