Towards a theory of soft terms for the supersymmetric standard model