Factor out activations and backpropogation from fit method.
Merge branch 'refactor_mlp'