Switch to Grunt build system and Bower dependency system

Also update usage of Storage API in a few files.