Move redirects and error handlers to the last items set up
Merge pull request #583 from snowkeeper/statics

Move redirects and error handlers to the last items set up