[#1035] Register URLs of the form www.../$user/__rpc_...

For legacy JS files
Merge pull request #1070 from afuna/endpoint-404-bug-1035

[#1035] Register URLs of the form www.../$user/__rpc_...