Misc improvements includes
* Added interface for connection so that context has no hiberante dependencies
* Removed hibernate hardwired depenendency away from DAO's
* Fixed unit tests for MetadataField