Refactor content controller to accept respond_to blocks