CountFromLines: deal with malformed UTF, write output to HDFS

Signed-off-by: Colin Patrick McCabe <cmccabe@cloudera.com>
pom.xml: add hadoop-client = 2.3.0-cdh5.0.0

Fix a case where we were pulling in the Hadoop 1.0 jars.

Signed-off-by: Colin Patrick McCabe <cmccabe@cloudera.com>
add submit-common.sh to set SPARK_HOME appropriately

Signed-off-by: Colin Patrick McCabe <cmccabe@cloudera.com>