Set $modx->config['server_offset_time']
Refactor - $modx->isBackend()
Refactor - $modx->isFrontend()
Replace insideManager() to isBackend()
Revert - $modx->makeFriendlyURL()

Todo : Should replace to $modx->makeUrl()
Small fix - header.inc.php