Updated the app template and fixed a few bugs with persistent store provisioning.