Refactor noths_main.js

 - Use socket.io for order data
 - Use async.js for flow control
 - Change towards a more OO model for Orders/Paths etc.