Updated chaining

Chaining mechanism was updated. Instead of returning a deferred, the
queue method now returns the Maple instance instead, allowing to chain
queue calls. Note that in order to get access to results, the Maple
class now also implements Maple.then()