SHARK-123: Detect mapred.map.tasks and use it in TableScanOperator.

https://spark-project.atlassian.net/browse/SHARK-123
Merge branch 'master' into hive-0.10.0