Adding sugar to get associated navigations from foreign key.

Fixing some issues with self referencing relationships.

Fixes #1225