Fixing NodeJS bootstrap

It is possible to load LivelyKernel as NodeJS module with

```
var lively = require('livelykernel');
```

However, this requires `jsdom` and `xmlhttprequest` modules and a correct setup of the global namespace in bootstrap.js. This patch added these dependencies as optional and fixing a few bugs in bootstrap.js.