Fix JS to POST/PUT to tracked repos API correctly, and fix tracked repos API to use path from querystring