Anachip,
in ac small signal analysis we are only looking at linearized system about constant valued operating points. Since dc voltages have no ac signal they are grounded. You can think about this another way. Consider that any signal can have a dc and ac component. Now use superposition and take the dc and ac components separately to do the analysis and at the end add them up.
When we do bias component analysis (to get the dc operating points), we assume that the ac voltages are zero. We open circuit the capacitors, and then we do the analysis. For ac analysis, we short the capacitors, etc. The true amplifier waveforms contain both dc and ac.
As far as impedances are concerned, you have to go back to the definition of impedance. It is generally calculated by applying a signal at the port of interest and looking at the ratio of voltage/current. But for this definition to hold, the applied signal at the port of interest must be the *only* excitation applied to the circuit. All other independent sources must be turned off -- voltages sources set to zero (shorted) and current sources set to zero (opened).
I hope this helps you.
Best regards,
v_c