Update model and initial migration script to look in the INSTALLED_APPS setting for licenses rather the only looking for the ability to import licenses; this is because the migration will fail if the module is installed but not in the INSTALLED_APPS with an obsure error; also moved the creation of the ForeignKey to an Alter portion of the initial migration so the dependency is not created with License since it might not be installed