cleaned up server.js

rewrote multiple named command functions to single dispatching function.

tracking servers happens on an individual basis