removed hibernate dependency from agent codebase
Adding check in TaskService to run only single instance of a Task at any given moment