Python3-compatibility.

These commits make all tests pass with Python 3.3 and fix the Flask-DebugToolbar panel to be Python3-compatible (no test for that, sorry.)

Also, the test setup has been changed to work with Flask-WTF 0.8 as well as 0.9.