Fix up paths, requirements, imports and migrations