OZP-61: Migrate RPC API.

1. Cleaned up widgets for standalone-container test.
2. Fixed bug where the tools in the widget header wouldn't be flush to the right of the header.
3. Fixed bug where PortalPane threw an error on resize in IE7.