Export RelationClasses

Without this being exported, it was impossible to define custom relation types. However, there are still limitations - not all helper methods are public to really handle this scenario.

Perhaps this should be refactored at a later stage.