CMS Physics Technical Design Report, Volume I: Detector Performance and software