Configures HTML Purifier cache directory, if enabled.

- Adds a few helper methods to Bootstrap to resolve paths.