Refactored to sanely expose the base URL to the client side per CTR-115.  Required to fix a bug with the "parent picker" in production.