fix syntax error in util.js
migrated to util functions for saving and loading JSON
activities data is now stored on sdcard

Fixes #18 on github.

Storing activity information on sdcard rather than localstorage makes sure
activity lists persist through updates.