Each action keeps track of its type.
Allows checking equality for different actions.
Started to add logic for merging.  Added high-level logic for merge and test if can merge.  Still need to add low-level logic for merging in entry.cpp
Adds logic for merging headers.
Added a test for random merging.