Move tasks into separate header file
Wrap API stuff with try..catch. Lots of copy paste.
Merge branch 'master' into builds
7.232