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.
I'm not as sharp as you :(

https://github.com/bcwaldon/fleet/commit/7985f691e6a8ae276576ee37f3aea303fed20471