implemented a cache for address labels, to prevent continous DB lookups. my modifications will be migrated across to this new function, then the stock code will be migrated to the new system, hopefully this will result in some performance improvments overall
The address label cache is now cleared when updating labels on the identities, address book and subscriptions tabs
function loadInbox() now uses the address label cache
Bug fixed where inbox and sent tables sometimes do not update their labels after changing, it was only the from col on the inbox, and the to col on the sent folder, i think. both the rerenderSentFromLabels() and the rerenderInboxFromLabels() functions use the new address label cache system, both functions also update the to and from labels at the same time. the functions rerenderSentToLabels() and rerenderInboxToLabels() functions now call their `from` counterparts. At some point all references to these 2 functions need to be merged. some duplicates have been removed where the `to` and `from` functions are called one after the other
function loadSent() now uses the address label cache