Modified Initializer to support custom application class

I think is a good idea provide a mechanism to bootstrap yii with a custom application class.