Use psutil 2.x instead of subprocess.

Added support for limiting the solvers memory usage.