Non-equilibrium real time dynamics of quantum spin systems and the quantum critical dynamics of 'dirty' bosons