Refactor controllers to use respond_with
Remove whitespace
Small refactoring
Add to errors if locking/unlocking fails
Generate page number when creating page by default
Extract error messages into partial
Use PATCH instead of GET for non-idempotent updates
Remove test of private method