Refactor TripleStoreUtil and added testURIexists

Pulled out normalizing tripleStoreURL and testTripleStoreConnection
Throw exception of connection fails