Critical fixes

* Added gunzip when downloading from intermediate server
* Refactored scheduled updates and added startAutomaticUpdates()
* Implemented random update time to spread load
* Changed config.js and moved to module directory
* Fixed code alignment in utils.js, added some functions