The beginnings of a Permission system

Mostly modeled after Jenkins.