Fixes dynamic assignment of Package::layout
Recognise if APC and Memcache arent available, and skip tests.
Merge pull request #19 from phavour/package-layout-fix

Package layout fix