SP metadata

Implementation of SP Metadata.
- Produces the bare mininum metadata required by the spec.
- Fixes #4.
A short note in the code about how it breaks otherwise could help analyzing in the future if this workaround could be removed.