Clean up batcache.php.

Define $batcache global to avoid debug notice.
Set default values for defined function parameters.
Remove unused $batcache global define.
Add documentation.
Whitespace bliss.
Cleanup advanced-cache.php

Merge Flox customizations.
Add PHPDoc.
Whitespace bliss.
Clean up tag position check.