refactor, reformat, remove stale code
Merge pull request #23 from pkit/auth

refactor, reformat, remove stale code