Minor code cleanups.
Add OAuth example.