Browser session recovery

-Retuned the algorithm for recovering from the server downtimes and
network problems
-Also removed some unneeded files