implement better agent service management
Merge branch 'refactoring' of github.com:grundic/puppet-teamcity into refactoring