Ensure proper building of man pages

Use the .sh which sets the right paths automatically.

Clean and rebuild the Qt UIs so the imports will work.
(This is also a good check to do before release.)
Keep spaces as they are

This is mainly useful for the setup.py, which does not have spaces for
the version=.
Check the setup.py really works
Ignore Qt generated UI files
All messages on stderr

This allows using ./setup.py --url as long as you ignore stderr, for example.
json encoder
refs #1060 : move to_dict to base.py
Reconcile the two previous commits (json/to_dict)

Also fix some to_dict move things that were incomplete.
And some PEP8 fixes.
Tell groff manpages are utf-8

This should fix the display of manpages with accents (mainly boobank).
Force updating modules after upgrade

fixes #1066

Also, some small PEP8 fixes.