Added authentication, admin actions, voting funcitonality and sped up post index view

Bad indentation on this file.