WIP: refactor spike detection main loop.
WIP: refactor spike detection main loop.

nsteinme/phy,rossant/phy,rossant/phy,nsteinme/phy,rossant/phy,kwikteam/phy,nippoo/phy,kwikteam/phy,kwikteam/phy,nippoo/phy