Use APC if loaded for storing cache
as a fallback save serialized array to a file
also fixed some cgl issues
fix problem when using get.php (some constants are not defined)

If you call a request to a file in /media/ folder, it will be rewritten and handled by get.php
Unfortunately get.php doesn't define constants like mage.php does.
so you'll get error like:
Notice: Use of undefined constant BP - assumed 'BP' in app/code/local/Varien/Autoload.php on line 64

This patch solves this problem.
Make cache key unique for each Magento installation
Removed unused constant SCOPE_FILE_PREFIX
Removed unused class variable
Added phpdoc