preload related issue items to reduce load time
remove default foreign table joins on select oft-used functions to reduce load time
add permissions lookup caching to reduce redundant permission calls

Conflicts:

	core/classes/TBGIssue.class.php
add memory usage to debug info
add 250 and 500 as available search result counts
add debug memory usage icon