Adding testng listener to work with testInProgress plugin of Jenkins.
Adding snapshot version and removing uncessary code.