Update server.js

added command watcher and auto detection of admin role