SPARK-929: Deprecate SPARK_MEM

Can I get some feedback on this fairly untested change please?

Thanks in advance!