Debug

- add debug messages
- harmonize module.exports for bosh and websockets