Refactor with promises
Reorder functions
Minor tidy
Cleaning up
Merge branch 'master' of github.com:ecoad/SiteUptimeJS