Subdir support for admin interface

refs #527
Fix several redirects in frontend and admin

refs #527