Implement getPropertiesSync and getPropertyKeysSync

I am putting these functions into titan-node for the time being, so that we don't have to fork gremlin-node as well.