Purge global functions no longer needed.

Removed `config()`, `cache()`, `clearCache()`, `convertSlashes()`.

Somehow two copies of the `stackTrace()` had crept in so I removed the duplicate.

Other functions that can be potentially purged are `am()`, `fileExistsInPath()`, `sortByKey()`. They are used anywhere in the core.