Implemented client side queue operations.

The server ignores the queue message for but this commits is way too big as
it is.