Implement Permissions checks into Core

I may have missed some spots...
App names can contain dots!