Added lrlib_sapeventqueue_encode
Added lrlib_sapeventqueue_decode