improved code and added some traces
Merge branch 'master' into setuploop_ticket_33

Conflicts:
	protected/components/ActiveForm.php
	protected/components/EntryButtonColumn.php
	protected/components/SecurityManager.php
	protected/components/WebUser.php