Handle an x-Script-Name in the store delegation

This is needed to properly virtual host the api.