MWEB-999 AMQP first step

Don't merge it yet
move error function code to separate function and try something like this:

``` JS
//.....
return amqp
		.connect(createTaskBrokerUrl(config)
                .then(connectionSuccess)
                .fail(function (error) {
                           retries = connectionErrorFunc(error, retries);
                });

```