The LIF nonlinearity is now fully working.

- I've added a helper function that should make it easy
  to add more nonlinearities.
- This helper function allows for either one kernel per computation
  or one kernel doing a few computations.
- The only thing left to add to the LIF is upsampling.