Run cordova.prepare before doing phonegap.serve so that we can use prepare hooks

PR for phonegap/phonegap-cli#392

I've updated the tests for `serve` too.