add helper scripts to use LeNet model against MNIST data

This is taking over PR #1017 to target BVLC:dev branch instead of BVLC:master.