Fixed gathering results for simulations which have different number of iterations.
Removed dead code in the server.
Added stack trace to error email.
Merge pull request #42 from filinep/master

Gatherer fix