Added onAttach onDetach hook to ViewImpl

If we turned initWidget into the constructor for version 2.0 would that not work better?