Refactor $global parameters to $service and $global.
Implement client-side page renderer.