Avalanche dynamics for active matter in heterogeneous media. (7th February 2018)