Update code to work with brian2's current master
Also update some tests/examples