It’s an occupational hazard: IT consultants often find themselves mired in ugly office politics and dealing with resentful staff. These survival tips may help.