[Android][Extensions] Rename EventHandler's event type and Implement on(at|de)tach function

1. The type name in the addEventListener() should be 'attach' instead of
'onattach' according to the W3C spec.

2. Support another method to add a listener, for example:
navigator.system.onattach = function() {...}