CMS-3727 Merge in restlet code for portal.