Introduced pagination, added a few ForeignKey to json serialization