Converted from magic methods to generated methods.

* Lazy loading resources via get$Resource($id) methods.
* Fixes postMessage()
* Improved parameter documentation.