Add Sphinx documentation.

Add more events.

Also, return Job objects from event handlers for convenience of
subclasses.

Add sphinx config to setup.cfg.

Change-Id: I2ccc32fbc5f043a67d5da86cc3c37ab3d2c30d99