Fix few bugs on the UI:

- fix karma watch mode
- Fix number vs buildid bug in the build page
- python: add events for new logs
- Fix race condition between event registering and first value got from data api
Merge branch 'uifixes' of git://github.com/tardyp/buildbot into nine

+autopep8