Added UUID support, changed how permissions are registered, and cleaned
up part of the permissions system.