Skylight: a new code for general-relativistic ray-tracing and radiative transfer in arbitrary spacetimes