Flake8 cleanup of omeroweb/webredirect

Fix flake8 issues and add flake8 check to travis build.

Will rebase once #2332 is merged.