The Muon Project - Technical Design Report: TDR 4