Defaulting to the browser language if possible and including empty folders

Adds an if to take the browser default language and enable it if it exists in the langHandler component.

Also some .gitignore files were added to include empty folders needed by Yii into the versioning system.