[SPARK-2894] spark-shell doesn't accept flags

As @sryza reported, spark-shell doesn't accept any flags.
The root cause is wrong usage of spark-submit in spark-shell and it come to the surface by #1801
The following case failed because this line doesn't handle quoted string with spaces properly:

```
./bin/pyspark app.py --master spark://lian-laptop.local:7077 --name "awesome name"
```

A possible fix is to replace this line with the trick `bin/pyspark` uses:

```bash
whitespace="[[:space:]]"
i=$1
if [[ $1 =~ \" ]]; then i=$(echo $1 | sed 's/\"/\\\"/g'); fi
if [[ $1 =~ $whitespace ]]; then i=\"$1\"; fi
SUBMISSION_OPTS+=($i); shift
```