Protostar Formation in Magnetic Molecular Clouds beyond Ion Detachment. I. Formulation of the Problem and Method of Solution