Posts#index is ordered by published_at instead of created_at.
Updated published_at time when post is published.
Replaced created_at with published_at in several places.