If the kicker stands completely still and is struck in the leg by a pitch, or if they are trying to get out of the way, does that count as a kick?

Yes – it is the kicker’s responsibility to evade a pitched ball that they do not wish to kick. However, the Head Ref has some discretion here, and should call a pitch a Ball if the Ref judges it to be a deliberate and unsportsmanlike throw at the kicker.