Hierarchical, dissipative formation of elliptical galaxies: is thermal instability the key mechanism?. Hydrodynamical simulations including supernova feedback, multi-phase gas and metal enrichment in CDM: structure and dynamics of elliptical galaxies