Added a 'gradient' op to calculate numerically the gradient of node
states (including output, as needed in delta-rule) with respect to
changes in input. Also, restored a logistic function and renamed the
approximate logistic to fastlogistic. Test of gradient function in
example/gradient.
Merge branch 'deltarule-derivative'