Implement support for Titan specific label feature.

Change neo4j to Titan berkeleyje backed db for transaction testing.

Refactor deprecated code.