complete rewrite
merge some more old code back in
fix oauth2 logic
cleanup some redis calls
add some template style changes
implement basic errorHandler
Merge branch 'dev'