[OE-3049] fixed migrating develop from an empty db.
[OE-3036] enabled restriction of emails using a configured list of domains.
Merge branch 'develop' of github.com:openeyes/OpenEyes into develop