Minor improvements to the travis configuration.

This changes some parts of the travis configuration:

* split the `before_script` section into multiple parts
* print the Maven version before actually testing
* set the `--batch-mode` flag as we are running in non-interactive mode
* set the `--threads` configuration to use 2 threads per available cpu core

The `--threads` configuration should also speed-up the travis job.
Improved the AuthenticationProvider test.

Also checking now if the userName and the password is correct in the authResult.
Merge branch 'master' of https://github.com/terrestris/shogun2 into security-test
Merge pull request #8 from marcjansen/ci-improvements

Minor improvements to the travis configuration.
Merge pull request #9 from buehner/security-test

Improved the AuthenticationProvider test.