Changed the target framework back to 4.0

Also reverted any changes to .travis.yml. This should fix the travis-ci
build.