Adapter and example code for using persistence.js in QML