user fs.existsSync instead of complicated folder lookup
added https support if certificates are present
fixed typo in pm2.json
assume https port is default when redirecting from http
Merge branch 'master' of https://github.com/amd/rest3d