DRYed up the controller file and changed routes.

Placed all admin functions under the /admin route.