Cleaning code of redirect.js + handling reconnection to local server so that we can keep the connection to main sensors server alive when restarting our local server
Fixed a bug when two frames belonging to us are one after the other