(Spike) New way to declare endpoints

This obsoletes #109