use BASEURL for sockjs too (required for reverse-proxy)
new settigns for proxys which send the directory
add custom proxy wrapper (uses ORIG_PATH instead of X_SCRIPT_NAME)