utilities/chat: Add completion helper, and test.

Refs #405, #406.
beta/protocol: Initial version of autocompletion for usernames.

Refs #405.
utilities/chat: More tab-completion.

Case-insensitivity for usernames, and trailing spaces at completion.

Refs #405.
tests: Update completion tests.

Refs #405.