Adding a demo app for the preferences/scratchpad APIs

Staging the merge to dev