Updated to gem best practices.

Also added travis-ci support.
Added badges.