Start refactoring posts controller using respond_with.