SP metadata

Implementation of SP Metadata.
- Produces the bare mininum metadata required by the spec.
- Fixes #4.