Refacturing of source tree. Added basic TeamCity support.