hooks for population mode

This is a skeleton for population mode that includes an over-simplified noise model and no bias model. Just looking for comments on whether I am putting things in the right places. If so, the action will happen in nonlinearities.SurrogateFunction.