Add 'max_memory' and 'max_nodes' options to 'y_param'.
Set default memory usage to 2GB.
Simplify swap code.
Turn support for swap on by default (since gui now handles it).