Made requires work with browserify & Stability Improvements

Browserify doesn't understand variables in require() arguments. 
I didnt realise this after the redactor of my first pull request. 

The 2nd commit is because I found that my serial port would have a dodgy read once every 10 seconds or so while running in chrome which would cause firmata to stop processing messages. This fixed it for me.