Refactor http requests code in kronos.js
Merge pull request #209 from Locu/ref

Refactor http requests code in kronos.js