hybridgroup/cylon — pull request #242 by stewart (2014-11-20 16:47:58+00:00)
Title: Extract out Connection/Device initialization

Simple extraction out of Connection/Device initialization code inside Robot.

This yields an interesting boon, however - this is now a valid Cylon program:

```javascript
var Cylon = require('cylon');

Cylon
.robot()
.connection({ name: 'loopback', adaptor: 'loopback' })
.device({ name: 'ping', driver: 'ping' })
.on('ready', function(bot) {
console.log("Bot working!");

every(1000, function() {
console.log(bot.ping.ping());
})
});

Cylon.start();
```

For those that prefer imperative programs with Cylon, this is a nice syntax addition.