[build] Add migration code to js.all resources.
[web] Add migrate code.
Make the image paths in the initial note's relative.
Don't add initial notes until the collection is loaded.