Added a bunch of meta gathering and uri-generation code. Relative URIs are a go.