change the way package names are determined for resources

Don't use the PackageParser anymore, instead save the name when the APK is
loaded. As a (wanted) side-effect, one more edge case is supported for
triggering hookLoadPackage(). Fixes #36.