Use the Ruby idiom instead of the Java idiom even even calling Java methods.
Use each instead of map to reduce memory consumption as map creates a new array
Add lets for api and another_session for relationship too
Modified Relationship::Rest methods similar to Node::Rest. This is more efficient.
Move these methods to a PropertyContainer module