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

Rails has a feature called counter cache. Look for the `:counter_cache` option on the `has_many` documentation: http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#method-i-has_many