Arduino Mega support

Added Arduino Mega Serial 1-3 support. Compatibility to older version
remains.