[SPARK-1870] Made deployment with --jars work in yarn-standalone mode.

Ported from 1.0 branch to 0.9 branch. Sent secondary jars to distributed cache of all containers and add the cached jars to classpath before executors start.
Thanks. You are right. It will add empty string to array, and then add the folder without file into classpath. Will fix in master as well.