Added ability to take link up and down.

See the revised examples/simple.py for how to use this functionality.