charm: add BundleData, parser and Verify method.
add some more tests and comments as per review
Merge pull request #9 from rogpeppe/bundledata

charm: add BundleData, parser and Verify method.