JBEAM input system, beams

Also beams can now be added with mouse, and they appear directly at
cursor position in JBEAM widget.