Introduce RelationProviderInterface

Introduce RelationProviderInterface for easy extending of a library.