Added autocommit method
Refactored socket.js. Made room for socketfs