Density Functional Theory of Crystal Field Quasiparticle Excitations and the ab initio Calculation of Spin Hamiltonian Parameters.