Feature/resolve citations

Sorry kind of a long winded commit.
This changes URIs to be actual objects and starts off on resolving references (or possibly other info) to URIs
I also did some work to allow documents to be parsed and serialized based on mime types