Moving Travis steps to invert the example and root directories into a shell script.
Adding basic sanity check for the build process with Mocha.