Add registerPlugin function.

More details: http://developer.longtailvideo.com/trac/browser/sdks/jw6-plugin-sdk/docs/plugins-js.html