Fixed TypeLoad error, removed deprecated assemblies, added latest replacement assemblies, edited code for a couple breaking changes, fixed tests, removed unused using statements.