make serialized data conform with jsonapi.org speciications
This change does the the ff:
- make both single and paginated responses conform with jsonapi.org specification
- make pagination query conform with the recommended syntax
- fix last page number returning zero when collection is empty
- enable dynamic page sizing instead of setting an upper limit.