Use exceptions for API error codes
Add ApiPermission and Fqdn classes
Add reference to Fqdn object in User class
Access control