Bugfix: the prefix was wrong, if the document root was not in the url

(as example on rewriting)

As a side effect the application-core does not longer require baseDir to be set with $application->setBaseDir([baseDir]).