Extract and test HierarchicalRelationships

Includes making them editable in rails_admin