Small tweaks to verifySolution lib.

- Returning earlier from a function if a failure has already been detected.
- Only trimming the last newline of the contents when comparing.
Fixing bug in verifySolution.

It now returns false when files match but have different contents.
Starting to unit test and adding tests for verifySolution.
Adding travis ci config.