tests: Replaced ctest by self-made python script

It makes possible to archive logs/blob data and attach it to build
log in TeamCity for futher investigation
Fixed compilation errors/warning

Forgotten <mutex>, <cstdatomic>. Updated rapidjson version
Merge pull request #313 from euroelessar/master

tests: Replaced ctest by self-made python script