decouple config validation and installer

Change-Id: I2bbcc0adff54000682eb9a0f07c8caae763688a6
Reviewed-on: http://review.couchbase.org/36845
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Li Yang <lichenyang2@gmail.com>