Apply good practices to make SS apps require'able/callable and forkable.

Improve testability by using OS assigned port.
Fix two globals leak (detected by mocha).
Add a three tests / test suite.
Provide a way to pass actual app current directory;
don't assume our cwd is the right one.
Modify package.json to run mocha on tests.
Updating path with baseDir prefix should only occur if it actually exist.
Merge pull request #4 from Lophilo/testability

Apply good practices to make SS apps require'able/callable and forkable.
committing a bunch of changes that have been lurking around on my laptop to get everyone up to speed and get things moving again. don't read too much into things - a lot of work is yet to be done to prove the performance of the whole streams/streams2 idea
fixed base dir prepend
fixed base dir prepend (better way)
Updated deps
Whoops! Putting the original muxdemux code back as my changes stopped the example app from working. Note: All this code will be going shortly as change the implementation
Major changes! Read HISTORY.md
Changed path to ensure example_app runs first time
Fixed script so it works on Ubuntu. Thanks @missinglink
new Realtime Service implementation. look at /mods/realtime-service/README.md
Few minor changes to services
Specify engine.io port
Cleanup and support engine.io debugging
added basic reconnection logic to engine.io client. will refactor shortly to bring the Transport API closer to the RTS API
Added debug functions to RTS libs
Allow callbacks and regular messages to exist simultaneously
and other attributes to be encoded in the future
Improved paths in RTS
Changed transport spec. More changes to come