chanserv/op: allow people with CA_AUTOOP to op themselves

This follows commit 30fe519c6dec7fc6 which did the same with CA_AUTOVOICE.
alis: automatically surround topic matches with wildcards

Searching by exact match is literally _never_ useful for topics. Prefer
usability over compatibility with a decades-old IRCnet service.
alis: remove forgotten debug message
alis: auto-add wildcards to the channel name, too

But exempt searches for an exact channel name, e.g. "LIST #foo".
alis: retab
alis: move query.mask parsing to parse_alis()
alis: fix a memory leak I introduced