More optimization work. Moved special page init functions to common instead of common_post hook. Allowed paths to cache page metadata on filesystem. Phased out the redundancy in $paths->pages that paired a number with every urlname as foreach loops are allowed now (and have been for some time). Fixed missing includes for several functions. Rewrote str_replace_once to be a lot more efficient.
Another sweep from the optimization monster.
template: rewrote parts of tplWikiFormat to do faster validation and less eval()ing
template: sidebar is now cached for anonymous users (thanks to Richard Greene for the suggestion)
dbal: rewrote SQL query parser, much cruft taken out
template: made tplWikiFormat depend more on RenderMan
common: moved some lesser-used includes out of main loading sequence
Expect a lot of changes to AES code in the next commit!