Extract and test HierarchicalRelationships

Includes making them editable in rails_admin for Topics
Enforce available locales to silence deprecation warnings