Refactor: Pick the opcode out of the cookie for privilege checks
Refactor: Pick the opcode out of the cookie for privilege checks

Change-Id: Ia035f19bf2208c9ed545fdff5eb1f8d4067047eb
Reviewed-on: http://review.couchbase.org/84999
Tested-by: Build Bot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Dave Rigby <a09264da4832c7ff1d3bf1608a19f4b870f93750@couchbase.com>

daverigby/kv_engine,daverigby/kv_engine,daverigby/kv_engine,daverigby/kv_engine