Added JSON serialization for app settings.
Call initSession after configuration has been loaded.