Add special constructors for Organizations and Environments.  The Org constructor will go into a specified :initial-env and link it back to the org being constructed.  Also updated Uniqueable to update both names at the same time (the org's name, and the (-> org :initial-env :org :name).  Do a similar thing for Environments, where we link the environment to Library if no :prior is given.  Remove chained-env since the constructor makes it obsolete.  Update all references.
Fix forward declaration
Remove all reference to System Templates which are being removed from Katello
Forgot to remove templates
Remove all references to Template record also (including 2 permission tests that test Template permissions)
Merge pull request #631 from weissjeffm/nuke-system-templates

Remove all reference to System Templates which are being removed from Ka...
Added a couple of functions to check whether a custom keyname or value is present. It is generic enough to be used with Organizations, Systems, and eventually Subscriptions.
Merge pull request #634 from omaciel/customfn

Added a couple of functions to check whether a custom keyname or value i...