Moving images out of the domain class

This change won't destroy old data, though it will need to be manually updated.

To migrate an installation use the `/attachment/migrateAll` URL. The results of the action are returned in XML format.