Minor refactorings.
Created a base class for all controllers.
Figured out how to get the User resource to report possible links to itself.