Ganesha is the power that removes obstacles by the force of Knowledge. Ganesha (among other things) is the Devata of spiritual Knowledge, so, as you are getting this Knowledge you saw yourself in this form identified with Ganesha.
I do not regard the ascetic way of living as indispensable to spiritual perfection or as identical with it. There is the way of spiritual self-mastery and the way of spiritual self-giving and surrender to the Divine, abandoning ego and desire even in the midst of action or of any kind of work or all kinds of work demanded from us by the Divine. If it were not so, there would not have been great spiritual men like Janaka or Vidura in India and even there would have been no Krishna or else Krishna would have been not the Lord of Brindavan and Mathura and Dwarka or a prince and warrior or the charioteer of Kurukshetra, but only one more great anchorite. The Indian scriptures and Indian tradition, in the Mahabharata and elsewhere, make room both for the spirituality of the renunciation of life and for the spiritual life of action. One cannot say that one only is the Indian tradition and that the acceptance of life and works of all kinds, sarvakarmãni, is un-Indian, European or western and unspiritual.