Add metadata endpoint.
Merge pull request #163 from tobie/metadata

Add metadata endpoint.