separated pre-sort sub handling

added some docs
style
remove db locals no longer used in flsys
code notes
starting on ilvl calc for t17
calculate ilvl for t17 tier tokens

#68
update test items

also function to precache so macro doesn't get out of date
#69
mock GiveMasterLoot to test full award functions

#69