Subdir support for admin interface

refs #527
Fix several redirects in frontend and admin

refs #527
Merge pull request #1577 from halfdan/527-subdir-admin

Fix Admin interface with sub directories