Migration fixes so that bringing the site up from scratch works
Move wagtailcore templates to the right place