Added API for Relations

Fixes #93