Avoid races with HA on "python manage.py syncdb" + Move configuration of vhost later

We didn't have any synchronization for it because this is run in a
notification. But it's actually easy to force a synchronization there
too, by putting the template creating the notification as part of the sync.