Added AppExtension that exposes few global app variables (like env and debug).