Add script to test gradient numerically.
Add script to test gradient numerically.

Also implements functionality to compare against old vs new method,
for regression purposes. This file will be made into a full test and
the old method eventually removed.

hammerlab/oml