Critical fixes, errors handling, and a few new API calls.

As arranged, I've brushed up my changes which I made while setting up matrix build emulation on TeamCity (by emitting a set of build configurations):
1) Had to fix a few existing API calls not working at all.
2) Set up error handling to see faulty calls.
3) Added API methods I needed which were not yet here.