Consistent error handling in PulsarDb/db.js.
Add error callback to PulsarDb constructor, Encapsulate Task.id generation inside PulsarDb.saveTask, Fix error of PulsarDb.getTaskList, Add separate config for tests, Change pulsar test according to new PulsarDb with callbacks.