Set exported/permission attributes in manifest

Fixes #131