improve travis ci

* Allow Travis CI to deploy pull requests to be tested before being
merged.
* Generate IPA file.
* Remove old code.