Add doctest support

This adds doctest support to the project. Even if we don't use it, it's
now enabled. This is part of my current effort of lifting the current
project workflow up a level.