Initial migration to dynamic device registration.
Add announce handlers.
Finish dynamic device implementation.
Call free handler on devices. Only add printer if enabled.
Initialize devices_registered.
Flush only automatically. Stay in handle_messages as long as data is available.
Unlock lock properly.
Stay in handle_messages as long as possible for VNC as well.
Switch to VNC-style wait.