Removing hard-coded repository URLs

* All repository URLs now come from JMS messages (or the reindex servlet's baseURI parameter)
* Fixes https://www.pivotaltracker.com/story/show/72351918
Instead of magic number "6", use length of a variable that holds "/rest/".