Added onAttach onDetach hook to ViewImpl

maybe not worth the commit:  `AttachEvent.Handler` is clearer than just `Handler`, there are so many Handler classes in gwt.