add permissions lookup caching to reduce redundant permission calls
add permissions lookup caching to reduce redundant permission calls

Conflicts:

	core/classes/TBGIssue.class.php

SysBind/thebuggenie,LogosLabs/thebuggenie,SamMousa/thebuggenie,JonathanRH/thebuggenie,thebuggenie/thebuggenie,nrensen/thebuggenie,deshion/thebuggenie,SysBind/thebuggenie,azaghal/thebuggenie,LogosLabs/thebuggenie,milkyway-git/thebuggenie,nrensen/thebuggenie,hurie/thebuggenie,deshion/thebuggenie,milkyway-git/thebuggenie,LogosLabs/thebuggenie,stolenbike/thebuggenie,Rvanlaak/thebuggenie,thebuggenie/thebuggenie,praveenscience/thebuggenie,nrensen/thebuggenie,SysBind/thebuggenie,praveenscience/thebuggenie,hurie/thebuggenie,Rvanlaak/thebuggenie,azaghal/thebuggenie,SamMousa/thebuggenie,dachaac/thebuggenie,gabor-udvari/thebuggenie,azaghal/thebuggenie,LogosLabs/thebuggenie,milkyway-git/thebuggenie,thebuggenie/thebuggenie,dachaac/thebuggenie,stolenbike/thebuggenie,azaghal/thebuggenie,milkyway-git/thebuggenie,praveenscience/thebuggenie,deshion/thebuggenie,stolenbike/thebuggenie,nrensen/thebuggenie,thebuggenie/thebuggenie,Rvanlaak/thebuggenie,SysBind/thebuggenie,gabor-udvari/thebuggenie,stolenbike/thebuggenie,dachaac/thebuggenie,gabor-udvari/thebuggenie,deshion/thebuggenie,dachaac/thebuggenie,gabor-udvari/thebuggenie,Rvanlaak/thebuggenie,thebuggenie/thebuggenie,hurie/thebuggenie,JonathanRH/thebuggenie,JonathanRH/thebuggenie,SamMousa/thebuggenie,praveenscience/thebuggenie,hurie/thebuggenie,SamMousa/thebuggenie,JonathanRH/thebuggenie