Further work to break off from GW2DB.

This will now generate the tooltips (not hover ones yet) for all item types known so far.
It also caches API queries.