Simulating radiation and kinetic processes in relativistic plasmas