Improve cache cleaning
Support custom flags for sandbox and app layers
Add app pre-install hook
Improve naming
Add PROTECT_SANDBOX
Tweak delimiting
Tweak naming
Refactor magic hashing