Support apps that run under a root (ie /my_app

We use apache in development so requests need to go to /my_app/__meta_request.

This change sets the "root" as a response header, and uses that header in the XHR URI for __meta_request, if it's there, otherwise defaults to old behavior