convert modbaseditemsink to use a internal integer modid
fix qsort cpu usage

only consider 1 stack at a time, 3 per second (old speed), until all
have been processed, (consider every slot without a send), then it will
slow down to considering 1 stack per second until its next sucess.
lastSuceededStack check against inventory size.

also, code formatting is good, mkay.