Fix test body content flask test.
Pep cleanups. Lots of unused modules removed.
Fixed the flask python 3.4 compatibility.
Enabled python 3.4 on travis.