[Android][Extensions] Implement on(at|de)tach function for EventHandler

This commit add another method to add a listener.
For example:
navigator.system.attach = function() {...}