refactored communication with local storage and bitmessage into separate file

src/scripts/storage.coffee that is