Upstreaming a bunch of stuff we use in the App.net app

Most of this stuff is related to serializing/deserializing classes (and a forthcoming class to add paginatable streams of objects which I hope to share/integrate soon).