CRPropa 2.0 -- a Public Framework for Propagating High Energy Nuclei, Secondary Gamma Rays and Neutrinos