Added 'messages' attribute to ports, to make writing non-parser ports easier.