[SPARK-2370][SQL] Decrease metadata retrieved for partitioned hive queries.

Author: Michael Armbrust <michael@databricks.com>

Closes #1305 from marmbrus/usePrunerPartitions and squashes the following commits:

744aa20 [Michael Armbrust] Use getAllPartitionsForPruner instead of getPartitions, which avoids retrieving auth data

(cherry picked from commit 9d006c97371ddf357e0b821d5c6d1535d9b6fe41)
Signed-off-by: Reynold Xin <rxin@apache.org>