Admin Template Editor page

Hello. It's me again. I've improved my template editor - now it is able to override any template for any theme.

Also, I've optimized Smarty integration, I make sure that there is no unnecessary SQL queries done etc.
For now, only one query for modified_at column is performed per each page. 
If it isn't available, or template isn't active - then file fallback is used. 
If it is newer than cached - main query is performed to get new content.
If it is the same as cached - no extra queries is performed - content is get from cache.

I think, it is acceptable =) 

Please, take a look, and say, what I can improve.