Add .travis.yml, along with minor changes.

- Add .travis.yml.
- Use CGRect functions in sample app.
- Addn sample usage to README.