Refactored UDP MavLink code to separate class

in the mavlinkprotocol project, so it can be reused in the command line
and GUI clients.