shell: refactor: rename basePath in baseApiPath

It makes it clearer that this is not a file system path.
shell: allow to change the location where app is generated
core: don't throw UOE on baseUrl method of DeployedServer

this makes restx startup fail on deployed server, because RestxMainRouterFactory is using it.
core: fix bug in CORS support
core: minor: cut classloader toString when it contains new lines