add examples/repl.py

This program connects to a controller and opens an IPython shell you can use to
interact with the REST API.