Polarons and Mobile Impurities Near a Quantum Phase Transition