Improved performance of OrientGraph.getVertices() and getEdges() when no index is configured.

Now it execute a query rather than browsing all the items and filtering
in memory. With remote protocol this was unacceptable.