vbucket: add function to generate config

Change-Id: Ic0b70faba1c1437604f87a3478cd2cae991d2be4
Reviewed-on: http://review.couchbase.org/33521
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>