create a class for nonlinearities
add stub for mean field MRF nonlinearity
keep gradients as separate functions (for now?)
finish repackaging nonlinearity?
Merge pull request #56 from davharris/nonlinearity-object

Refactor: Nonlinearity object