Refactor all bootstrap entry points into a single function

These small functions are now defined as macros specified the relevant
flags to modify when the configuration is refreshed. Moving all the
logic into a single (not so big) function makes it much easier to follow
and understand.

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