Sample code used in my //build/ 2014 demo on using the Management Libraries to enable SaaS applications