travis ci tweaks

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