Move migrations from gatekeeper to here. Add one for url hierarchy stuff

The new migration redoes how hierarchy information is stored in a way
that is now usable for building a UI on top of.
Update dependencies.
Fix jshint warnings in migration script.