Update annoyingness algorithm.
Use proper pools so they can be reused elsewhere.
autocomplete.c: allow sections to be specified.