add component support

Hey there,
Thks for this awesome project

I added a component.json file to consume localforage as a component (http://github.com/component)
I also had to to update the require call deps, tests are passing but I have no idea if that impact other commonjs package consumer...

As an example, here is a module I created, that consume localforage as component
https://github.com/pgherveou/lru-cache