added sensor/compass functions
because of node-webkit problems with fork, added socket.io server for sensor module