Moved all configuration to separate classes, and handled one place.

Also started to move towards OWIN, to be able to support single-server hosting WebApi too.
And cleaned up the TestApp-project.