Added the option flag to enable/disable object versioning

Change-Id: Id78be1a8c3dccd550c92204c4aaa1cf32edcbf61