refactor auth related stuff into auth.js

Sorry for the aggressive renaming/refactoring. Just trying to keep server.js reasonably
add connect-mongo to the package.json
add basic form to login template
linkify the nav bar
move assorted styles into different scss files
add css reset rules for links
tweak search page
add autogen css file