builds the node_id and relationship_id on cypher query results

On performing a cypher query, the results should contain the node_id or relationship_id in the results as the other non-cypher methods do. Without this there is no way to obtain the id in the results to perform further operations.

This pull req takes from the self parameter returned in the REST response and inserts the {node|relationship}_id into each of the results.