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

Minor thing, but should give preference to the new hash syntax, i.e. `method: :delete, data: { confirm: "are you sure" }`.