Refactoring API, part 1.
Added collections to LocalStorage.
Configured build to generate browser javascripts.