Changing JSON output format to follow conventions of ActiveModel serializers

Adding pagination to index
[Issue #11] Add support for JSON request bodies