Implemented an action reducer to shorten action sequences before they're sent over the wire.

The most common case is a series of key presses (such as when using the 'delete that' command) being reduced down to a single action of repeated key presses.