This also renames some files and move some code around — to make the UID / SequenceNumber / UnknownMessageIdentifier split clearer.