Methods to keep track of the position of event id and packet context in Metadata::Packet.

Add new methods to Metadata::Packet to keep track of the position of an event id and packet context. These values can then be used to update the corresponding fields.

R=etienneb@chromium.org

Review URL: https://codereview.appspot.com/16760044