[WIP] Spark-544 

This PR tries to merge SPARK-544 to scala 2.10 and also refactors more configuration and lays down foundation for migrating rest of the configuration.

An early feedback will be good.