This also includes `from __future__ import absolute_import` in every file so that the imports are consistent in Python 2 and 3. The Python 2 tests fail without this.
This moves the code used by the backend and API to common/resolve.py and moves the code used just by the API to web/mse.py.