Auth based on querystring and some cleanup with login check.
Merge pull request #21 from firstandthird/feature/querystring-auth

Auth based on querystring and some cleanup with login check.