updating for sails 0.9+ and protractor for e2e testing