[SPARK-2964] [SQL] Fix the -S and --silent option of spark-sql, and improve spark-sql and start-thriftserver to leverage bin/util.sh

We should use `SUBMISSION_OPTS` and `APPLICATION_OPTS` here.