Refactored commands
Added a command-resolver for server commands (only 'stop' for now)