bin/rest.js: sync with master branch
bin/rest.js: sync with master branch


Former-commit-id: 21b0e410d19f97c23245de8b21060cce67e755eb
skale-me/skale-engine,skale-me/skale-engine,mvertes/skale-engine,mvertes/skale-engine,skale-me/skale-engine,mvertes/skale-engine