Flake8 cleanup of omeroweb/webredirect (dev_5_0)

Fix flake8 issues and add flake8 check to travis build.

--rebased-from #2346