LPS-45315 - Source Format A.io.request() url's

Hey @bryceosterhaus,

Attached is an update for http://issues.liferay.com/browse/LPS-45315.  We need to make a couple more changes for this review.

I spoke with Nate regarding this fix and we have a lot of inconsistencies in how the URLs are being written in the portal so we will go ahead and standardize how we use them.  Sometimes it's outside the script block, sometimes inside, sometimes in the middle of the function. So let's look for all places where we're creating a URL like this, and move it inside the script block to be nearest to the place where it's called (unless it's being used outside of the script block), but also so that it's not in the middle of the JavaScript calls (so right above the first use).

We can go ahead and restore the commit you had originally with https://github.com/bryceosterhaus/liferay-portal/commit/e6a5c09824e17bf92bfaca94a3f81c40e34194f3 and make the additional changes to all the other files. 

Please let me know if you have any questions.  Thanks!