change in grabMPHP for FF 15: add another regex to match against.
v1.79: use api.php instead of trying to scrape HP/MP; don't hide all but [A] while autoadventuring.
move adventure-counter handling to use API.php as well.
refactoring a lot of stuff; most anonymous inline functions have been promoted to full function status.
remove last vestiges of REDLIMIT.  Genericize WISM button event functions.
Version bump to 1.80
reformat some code, remove some excess logging
Version 1.81: support new Trick-or-Treat format (only does 1 block at a time)