Implements the server side funcionality for Monte carlo runs: issue #6