added meta data property to message
added methods to retrieve first, next and last phase
added scopes to message structure and defined action pipeline interface