Added travis configuration file.

Also updated .gitignore to do .idea correctly