move catlib to pywikibot.compat

compat folder contains compatibility libraries from compat like
query. catlib is part of page.py and the library should also placed
here.

Change-Id: Ia00e2a96f906575eea27d55222ddd3b3e3abad10
Merge "move catlib to pywikibot.compat"