Use PhantomJS for headless testing instead of Firefox
Fix django migrate in before_script