Initial merge into juju repository

This PR is the initial merge of previous work into the juju/jujusvg repository.
It would probably be better to import gopkg.in/juju/charm.v2 and use that
to do that parsing.