refactor(localforage): move driver names and priorities into constants

* Moves all the constants and checks near the top, to improve readability.
* Introduces some JSDoc annotations based on the [Google JS style guide](http://google-styleguide.googlecode.com/svn/trunk/javascriptguide.xml) (which should be also recognized by Closure compiler and Tern.JS).
* This should also help with #168.
I get that these are for some kind of doc system, but we don't use one, so I don't think they're needed. I'm not really interested in following Google's docs, as another doc builder should be able to infer types, and also it looks like Java docs.