Added terminology dependency to cache tag (this fixes evernote#1)

Conflicts:
	pootle/templates/editor/units/edit.html
Partial pick: Updated the entire base.html template from the override one

Some of the changes are not interesting for us.
Other changes were undone in:

- evernote/pootle@373fbfb9
- evernote/pootle@933b03f1
- evernote/pootle@6bb67a86

and to avoid picking extra commits we just pick here the commits that are
not undone and that are insteresting for us.

Conflicts:
	pootle/templates/layout.html
Under Windows, locale names are different and setlocale() with regular locale names will fail; so just set the default locale and quit early. This will avoid polluting the logs with numerous 'Failed to set locale' debug messages

Conflicts:
	pootle/middleware/setlocale.py
Put braces in new lines for consistency

It is easier to do on our own than trying to pick evernote/pootle@23f9fce2.
Cleaner and flattier buttton shadows
Removed extra charset declaration
Fix number formatting crash under Windows
Cleanup: coding style fix