Implement the charm-related API.

Also move MgoTestPackage suite registration out from api_test to its
own package_test.go.
or just simply len(entity.CharmProvidedInterfaces) == 0 && len(entity.CharmRequiredInterfaces) == 0?