Changed HgUtils implementation
Got prepareWorkspace working correctly and implemented integration tests