Implement Permissions checks into Core

I may have missed some spots...
What does app stringify to?