Added a ton of Permissions framework stuff.  Not actually working yet.