[SPARK-2393][SQL] Prototype implementation of size estimations for Catalyst logical plans.

The idea is that every Catalyst logical plan gets hold of an Estimates class, the usage of which provides useful estimations on various statistics. See the implementations of `ParquetRelation` and `MetastoreRelation`.

This patch also includes one usage of the estimation interface -- namely, use physical table sizes from the estimate interface to convert an equi-join to a broadcast join (when doing so is beneficial, as determined by a size threshold). 

This PR still needs some cleanups, but just want to put it out here first to gather feedback on the interface & high-level approach.

TODOs:  
- [x] Add a separate test suite & improve test coverage.
- [x] Support `ParquetRelation` in the aforementioned BHJ optimization.
I don't see a need for two config options here.  -1 as the threshold works as a perfectly reasonable way to turn off auto-broadcasting.

I agree that it would be a good idea to set the build side for hash joins to the relation with the smaller estimated size.  If its not too hard we should just do that in this PR too.

We should add comments to the scala doc that explain the estimation magic that is going on here now.