Code samples using in my presentation at ConnectJS 2014.  Slides at http://bit.ly/1rYNc7a