Enable controls depending on server state

All controls are always enabled, no matter if they can be used or not. We
should enable and disable controls accordingly when the server becomes
enabled or disabled.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>