API, pt II: Pagination

This adds pagination to the machines resource. Included in this PR is also a bonus commit that adds some testing of the serialization code.
https://github.com/bcwaldon/fleet/commit/4878eaee1d6faa783c985bbf2ecd488420b21ced