Migrate to new Chrome packaged app API (Fix #459)

Cryptocat's Storage API had to be rewritten for this in order to
account for the new Chrome packaged app localStorage API, which is
asynchronous.