test: implement end-to-end tests

Add two basic end-to-end tests checking that the User model and
the authentication are correctly set up by the template.

/to @ritch please review

~~Note: the `npm install` step takes about 12 seconds on my machine. Instead of moving the tests to a different location, I'd like to implement a simple caching mechanism, so that `npm install` is run on the first run, and then a simple `ncp` is used instead. I'd rather make that change in a different pull request.~~

LOL. So the first run of `mocha` fails, but since we are caching the modules, the second run passes and thus the error is not shown anywhere in the build output.

@rmg It looks like a bug in our build framework - it should either use `xunit.xml` from the first run, or mark the build as passed when the second run passes.