Fix off-by-one error in numbering of epochs in most tutorials

The first epoch consisted in only one minibatch, and no validation
phase was used. For the following epochs, the validation phase happened
just before the last minibatch of the epoch.
Merge pull request #19 from lisa-lab/fix_iter_index

[WIP] Fix off-by-one error in numbering of epochs in most tutorials