Initialize global network.

This is recommended, since it avoids the overhead of implicitly doing
the setup for each session.
Support PIL or Pillow.

Clean up examples so that Pillow can be used rather than the deprecated
PIL library.
Merge pull request #40 from billyshambrook/master

Initialize global network and example PIL/Pillow support.