add authentication to admin pages

Moves all admin stuff to the rails side, add authentication for those pages via admin users.