Split errors on Validation and Unexpected errors.
Refactor pulsar.createTask(params, callback) to pulsar.createTask(app, env, action, taskVariables, callback). Make action to be required param. Update validation of taskVariables.