Fix in-doc examples and make running examples in docs possible.

This also adds a few more working examples, and makes the Travis
build run them by default.

Signed-off-by: Atheriel <atheriel@gmail.com>