Add support for signal arguments.
Fix handling of user types.
Make display state handling work in the client as well.