Handle when error is not a string.

Fixes #550
Do not pass raw error object to browser

This was not working at all, the message needs
to be serialized before we can pass it via ws to the client.

fixes #549
Ring bell on error

Fixes #550
Merge pull request #558 from jenius/sjs/fix-errors

Ring bell on error
fix deploy test, bump deps
fix environments not working from cli
fix default environment value
Change posix module to optional dependency

- Add posix to optionalDependencies in package.json
- Change config.coffee to allow posix to be optional
- Change index.coffee to allow posix to be optional

Fixes #556
Fix invalid windows regex
Merge pull request #563 from jenius/sjs/fix-posix

posix and regex fixes for win32
environment tests
Merge pull request #564 from jenius/fix-environments

Fix environments
3.0.0-rc.10