Adds support for host metadata.
Merge pull request #2 from vpetersson/master

Adds support for host metadata.