Fixed critical bug where tasks where run in parallel

Caused by using async.each instead of .eachSeries. Added test to prevent it from happening again.
Interface for remote connections

* setConnection to add a connection object
* getConnection to get a connection object

It's possible to implement lazy connecting later, but it didn't seem meaningful atm
Version bump 0.0.2