getRelationships, getDegree and getRelationshipTypes to kernel implemenation.

Moves a series of relationship-proxy methods into the kernel API, further separating transaction state from the global cache data structures.