Fix some issues in cmscommon.mimetypes

Thanks to Fabian Gundlach (@fagu) for the reports.
Update message catalogs

Mark a few missed strings and run the generation commands again.
Improve unicode support
Improve the Base database entity
Improve AdminWebServer

Introduce helper methods to ease the parsing of arguments when creating
and updating contests, tasks and users. The simplification is huge!
Improve pylint score of AWS
Set output width for localization-related commands in the docs.

To avoid misleading, useless diffs when different people updates the
pot or the po.
Fix ScoringService
Use monotonic time in ScoringService
Move ungreen_psycopg together with other gevent & psycopg utilities
Style fix
Style fixes

Put the call to the superclass constructor as early as possible.
Remove decode/encode_json

Their only user was already doing proper error handling, there was no
need for them.
Make initialize_logging become a method of Service

This seems more natural, avoids a circular import and reduces the
dependencies of cms.log, allowing it to be imported earlier during the
bootstrap (more on this later).
Split cms/__init__.py

It's considered bad practice to put actual code in __init__.py, hence we
move it to appropriate modules and use that file to glue them together.
Move cms/io/__init__.py to cms/util.py

They were of general use and didn't depend on anything else in cms.io.
Improve cms/conf.py

Take advantage of the early availability of logging and use it when
searching for configuration files. Also do a couple of style fixes.
Improve cms/util.py
Reduce duplication of JavaScript files

The ones in cms/io/static were just used as targets of the symlinks in
cms/server/static: we can put the files directly in the latter location.
Move TestService to cmstestsuite

Together with other testing related files.