Moved default controller to mata config file

Default controller can be overwritten in Yii config file

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>
Style updates and bug fixes

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>