Moved message handler class to all in header file

exe size in bytes is 25390 on mega2560, 23606 on 328p