Merge pull request #493 from jlipps/master

misc fixes (including #492)
initial support for firefoxOS
make sure we can receive longer commands over tcp
clean up some code and make async-friendly
make unimplemented methods for firefoxos return not yet implemented
make stop() actually call deleteSession so new session can start