Functions for encapsulating and decapsulations of App data were added

Signed-off-by: Bleska <blecha.jiri@gmail.com>