LyX 2.1 support, including Beamer changes, Abbreviation support, leak correctoin

LyX support has been updated (and tested) to support changes to the LyX 2.1 file structure. Utilization of the new (much improved) beamer support in LyX. Support for the new abbreviation capability. And a memory leak correction.