Add unit tests for configuration.

The authentication is not tested as this would involve communication with
mongodb and thus we would need to integrate s.th. like a mongo mock - too
much effort for this.
Add ASL2 license file, closes issue #18