Link to FAQ section on where to find the application id and password.
Reduce duplication in error handling code.
Comments on waiting for tasks, optimized waiting code.