[WIP] data structures for resources

This PR introduced some data structure to represent resources.
I'd like to focus on getting the right declarations in api/types.go. Making a nice go interface to build the structures up is great, but shouldn't necessarily go in at the same time or place. The primary source of these is going to be api requests, and at least at first the majority of those will come from static json files.