Minor cleanup of CMake script.
Create/destroy the network interface in connect()/disconnect().

Removes the need for callers to explicitly call cleanup() (assuming the
caller remembered to disconnect()).
Ignore sphinx build directory.
Remove need to explicitly call init().

Moves library initialization into the stub class.