Large rework for new plug.dj backend.