internal/legacy: implement charm-info endpoint
add copyright notice
Merge pull request #100 from rogpeppe/043-legacy-charm-info

internal/legacy: implement charm-info endpoint

This requires the SHA256 hash of the content. Rather than clutter the other code,
we calculate this lazily on demand.