Added tests and Travis configuration.

I was building this for a short talk on testing, but never got to give the talk.  Enable Travis-ci from https://travis-ci.org/profile before merging this.

There's a fix for displaying half-ratings, which is broken.

Successful build in https://travis-ci.org/dblock/StarRatingView/builds/25551722.