Implement pagination

https://github.com/fs/rails-base-api/issues/72