See Description

Made stdin debugging better. (API is now available by default).
Error events will now fire on various issues in lib/server.js
scripts/test.js now contains all old commands.