change way of creating CApplication

now applications are created by CPerson

Signed-off-by: Blazej Mirowski <blazej.mirowski@tieto.com>