Added caching support. Now using tabs for indentation.

Also removed PHP end tags. Using __DIR__ for require_once, so only
compatible with PHP5.3 and up.