Squashed commit of the following:

commit 221d4199001b3f06d5629b82ed1281bdfb95f043
Author: qchen <qifan.chen@hp.com>
Date:   Mon Sep 8 19:32:05 2014 +0000

    DoP: use a better version of resource estimator

    Change-Id: Idf6ea5caa7e4915c65b4d54f58d7e483c26871f4

commit 75c92f255ad3841102757f6188d749db42eaedf3
Author: qchen <qifan.chen@hp.com>
Date:   Fri Sep 5 15:55:11 2014 +0000

    do not add ESP partition requirement to partial GB leaf1 and leaf2.

commit f7c652adf2953d18f10da4a952f78d3815b5b3d4
Author: qchen <qifan.chen@hp.com>
Date:   Fri Sep 5 15:20:40 2014 +0000

    finalize

commit a419954b1528ca0d1f84c5298b806b46f561a713
Author: qchen <qifan.chen@hp.com>
Date:   Wed Sep 3 23:45:13 2014 +0000

    add a check on stats smart ptr before its use.

commit 8a2dcc24f0081d554ec3d69560c050f720da04dd
Author: qchen <qifan.chen@hp.com>
Date:   Wed Sep 3 18:31:50 2014 +0000

    partial gb root running in Master; use rowcount from stats for Hbase
    in AppliedStatMan::getStatsForCANodeId().

commit 55f46ededa9fcb30d38d17be6692e1535b4a274c
Author: qchen <qifan.chen@hp.com>
Date:   Fri Aug 29 17:46:00 2014 +0000

    improve the logic to disable parallel GB partial root when rows < 5000

commit 743783720d030f38e50a065737c8c218fa47c6b5
Author: Ravisha Neelakanthappa <Ravisha.Neelakanthappa@hp.com>
Date:   Wed Aug 20 17:20:09 2014 +0000

    Fix for bug 1348317. Enable Adaptive Segmentation logic to
    compute DoP based on resource estimation.

    Change-Id: I7c2b0756854d5a86d8bde162dad064b4e924233c

Change-Id: Id68e1d8265e478f128ed61d1cabc4849873dae23