Added nightly building with travis

Cleaned up version of the pull request.