Minor code refactoring
Merge pull request #563 from 28msec/aws

Minor code refactoring
added updating ca-certificates
try apt-get update
try NODE_TLS_REJECT_UNAUTHORIZED
before install
test date
revert changes
try endpoint
cleanup
allow untrusted certificates for publishaws
Merge pull request #565 from 28msec/fix-https

Fix https
Merge branch 'master' into jshint