Add custom relationship attribute subclasses

Closes #2