Implement statistics for builds

Allows retrieval of properties such as no. of passed tests in a given
build. From
http://confluence.jetbrains.com/display/TCD8/REST+API#RESTAPI-Statistics