Framework Fix

- Added code in done method implementation in Framework.scala to wait until server thread in main process (in fork mode) is done before proceed to print summary.
-Fixed -o configs get ignored problem (when runs in sbt fork).
-Fixed duplicated -o/-e problem.

May be we should cherry-pick these batch of changes into 2.1.x also.