General relativistic radiation magnetohydrodynamics, with applications to black hole accretion disks