MB-8241: Move records into common header file

Change-Id: Ia90d8843fefeec08d93aeab9077765eb98e0053e
Reviewed-on: http://review.couchbase.org/26312
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Fulu Li <fulu@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>