Expose IndexedDb api (bug 786688)

@Gozala  

If you want this merged down into one commit, I can do that.  

https://bugzilla.mozilla.org/show_bug.cgi?id=786644 nor, P1, 1.11, rFobic, RESO FIXED, Expose indexedDB API
https://bugzilla.mozilla.org/show_bug.cgi?id=786688

See #546  #539