Added getLocale() method to Application

Regarding Issue #2427

Added a <code>getLocale()</code> method to the Application class which returns the current locale from the config.