[OE-3179] migration and model updates to support new referral-pulling code in the pas module.
Merge branch 'release/1.4' of github.com:openeyes/OpenEyes into release/1.4