Application config as array (Yii1 Module)

Like in CWebApplication in Yii, this patch allows you to also pass a configuration array to initialize the app and run the tests.