Refactor pagination code
Refactor sorting code
Insert created_at and updated_at automatically
Change ORM to mongoid3 that doorkeeper will use