move BeamMode to Beam::Mode

needed to make it available to the plugin framework