Fixing auth bug, cleanup

Changes:
- Fixed an embarrassing bug in the placeholder credential verification function
- Moved blog-related code out of handler into its own file
- Renamed some functions for better clarity