Merge remote-tracking branch 'org/buildbot-0.8.8' into buildbot-0.8.8
Reintroduce deprecated `workdir` property.

It is unfortunatley named, but dropping it now doesn't provide a clear
migration path. Supporting both for at least a version allows smoother
migration.
Rework locating config file for checkconfig and upgrade-master.

This changes the logic of checkconfig so that,
1. If a file is passed, that file is used.
2. If a directory is passed containing `buildbot.tac`, that file is
   loaded and `configfile` is defined there, that file is used.
3. If `buildbot.tac` doesn't exist, or doesn't define `configfile`,
   `master.cfg` from that directory is used.

The logic for upgrade-master is similar, except only directories are
supported, so (1) is skipped.
Use twisted.python.deprecate.deprecatedModuleAttribute to deprecate SetProperty.
Move buildslave code around to match organization of openstack latent slave.
Report `SyntaxError` or `ImportError` from `checkconfig` and `upgrade-master`.
Merge 'locate-config': Rework locating config file for checkconfig and upgrade-master.

This changes the logic of checkconfig so that,
1. If a file is passed, that file is used.
2. If a directory is passed containing buildbot.tac, that file is
loaded and configfile is defined there, that file is used.
3. If buildbot.tac doesn't exist, or doesn't define configfile,
master.cfg from that directory is used.

The logic for upgrade-master is similar, except only directories are
supported, so (1) is skipped.
Fix python2.5 syntax errors.
Add monkey patch that fails docs build if unhightlighted code block found
Fix syntax errors in Python examples in docs

Only syntax fixed, without checking is examples are semantically
correct.
Add gitlab webhook based on existing github webhook.
Added the db.types package to setup.py

Fixed some import errors because the setup was not set up right.
Added a default for view in the web.authz module.

I added a default to true for the view in the master.status.web.authz
module. If there is no view specified in the master config then the
master will behave the same as it did before view was added. If view is
explicitly set in the master.cfg that argument will be used.
Output warning about not highlighted block through Sphinx' warn()

Sphinx' warn() function stores information about position of processing
code, so now error message contains exact position of error.
Fix highlighting for P4 stuff, config files, logs, IRC commands, exceptions

Hightlighted as "none".
Fix highlighting for command line examples

Highlight as "bash".
Fix highlighting of notes

Note that there is one new TODO about missing code example.
Fix IRC logs highlighting

Highlight as "irc".
Add Sphinx version checking for highlighting check monkey-patch

If Sphinx is older than 1.1 warning message will arise and monkey-patch
will not be applied.

Monkey-patch should work with Sphinx versions starting from 1.1, but
I managed to test it starting from version 1.1.3 due to this bug:
https://bitbucket.org/birkenfeld/sphinx/issue/853/attributeerror-reporter-instance-has-no
Remove duplicate robots.txt entry