Configuration for continuous integration service

Added a travis config file and did some changes to be able to run tests on Travis.

[Travis](http://about.travis-ci.org/docs/) is a hosted continuous integration service for the open source community.
Take a look [here](http://about.travis-ci.org/docs/user/getting-started/) to know how easy is the configuration for continous integration service.

I hope you'll enjoy it.