added maxiteration to BatchTrainer and ParallelBatchTrainer

default value is -1 which means "no limit" which means iterate until
optimizer detects convergence
Merge remote-tracking branch 'origin/master' into ps
Merge pull request #150 from peschue/ps

Made maxiterations work also for BatchTrainer and ParallelBatchTrainer