Deal with searchFail status when notes change to match

fixes #150
Beware the caps.
[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.