NCBC-608: Implement Common Flags

Change-Id: I31dadb83b1b1680ba9d85b6f33512c87d38007dc
Reviewed-on: http://review.couchbase.org/41479
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Jeffry Morris <jeffrymorris@gmail.com>