Teamcity8 support & bug fixes

Series of patches that add methods for TC8 API and some small bug fix
change method name to build_templates to follow ruby style guide.