[Application] Hide details from XWalkBrowserMainParts

XWalkBrowserMainParts contained code that didn't belong to it. This PR brings commits that try to move that code to better locations, and assorted fixes.