#366528 by netaustin, dww, Heine, hunmonk, chx: Convert AHAH handling to use the strategy defined by poll.module