Added support for per-batch dropout.
Added per_example to the cost.
Merge pull request #338 from dwf/batchwise_dropout

Added support for per-batch dropout.