Update example app

- Update templates to use new HTML5 style instead of old style
- Add a custom realm class instead of static ini configuration