Remove the obsolete mechanism of native methods.

It has been completely and largely superseded by
JavaScript interop.