Introduce mixin to reduce duplication between app.py and migrate/common.py.
This includes a mix so that tool migrations will target the galaxy install database (if different than the general galaxy database).