Tidied up APC caching. Added document ID validation.
Removed sha1 from document filenames
Removing sha1 bits from tests