add function to extract categories to library
From primary observations, Categories appear inside the link
tag and have a relation attribute "rel": "mw:PageProp/Category"
. There are also some subtypes of Category elements (i.e: normal or transcluded).
We need to write a library function to extract such categories and handle the subtypes, as well.