Draft updated version of this sample

This is a first draft, not quite working properly with OpenAM.