Update readme with new code snippet.

We received some questions on how to use the library in #juju-gui, and I figured an updated readme was probably in order.