Palette and message handling

Functions working with palette mirrors in RAM and "next message"
variable identified