Added onAttach onDetach hook to ViewImpl

Method called after the view is detached to the DOM.
<p/>
You should override this method to release any resources created directly or indirectly during the call to {@link #onAttach()}