Moved packet handlers to sockit.js
Added check to ensure handlers exist
Created interface.js to handle socket control
Replaced spaces with tabs