Add pagination and more tests to Documents
Add has_many pages association to documents
Allow page#edit to set document ID