Remove unused imports, methods and variables

The method load was copied from basic.py in the initial port from compat,
and is unused as the bot does page checking in treat().

Likewise import of config was copied from basic.py.

main() variable checkcurrent is set but was not used.  Moved a block of code.

Change-Id: I97b83965bd08a8ce156634cea30841b0174a3ba7
Merge "Remove unused imports, methods and variables"