Well, I don't know why she would lick up hair off the floor, but the grayish foamy moucus is probably bile. If she does this in one spot, I would try spraying the carpet with bitter apple to deter her from doing so. If there is no food in the vomit, it means her stomach is empty. Give her small meals throughout the day. Hope this helps :)