Strong homotopy lie algebras, generalized nahm equations and multiple M2-branes