Some Code style fixes
refactored fixture feature.
fixed test break.
Defined STDOUT in entry scripts in case console application is running via CGI
Merge remote-tracking branch 'yii/master'