Refactored protractorOnPrepare
Added script to start server in test env