Statistical Mechanics And Dynamics Of Driven And Active Systems