Add extended value formatting options

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