initial commit with base functions.

Signed-off-by: Andras Mitzki <micek@balabit.hu>