Preliminary TeamCity support

Code needs refactoring to make it adaptable to other build systems