Refactor command handling

Rebased commits:
  - Move command IDs to their own module
  - Move server commands to ServerCommandHandlers
  - Move settings command handlers to its own module
  - Create module command/MenuItems
  - Remove obsolete dependencies