Update to travis to run tests

This PR also contains the contents of https://github.com/numenta/nupic/pull/45 that were pushed directly to master before we had the dev-master process in place.