Initial import from salsita-workflow

Signed-off-by: Ondrej Kupka <ondra.cap@gmail.com>
@zakjan Please check this and let me know if the record structure is fine.