Fix cluster mode, restore SPARK_LOG4J_CONF.

Also add documentation about logging to the Yarn guide.

In cluster mode, the change modifies some code added in fb98488f
to treat both client and cluster modes as mostly the same. Previously,
cluster mode was only forwarding system properties that started
with "spark", which caused it to ignore anything that SparkSubmit
sets directly in the SparkConf object.