Fix setting correct path aliases.

Affected path aliases:
- <webroot> is defined in own version of Yii now
- <modules> is defined in protected/config/namespaces.php now

Update the base class of workers - GearmanWorker and the base class of commands - ConsoleCommand:
- delete path aliases definition.

Update own version of Yii to correctly set <webroot> path alias in non-web application.

Updated StaticManager.