Send context for a function that sends data

Signed-off-by: Peter Legierski <peter@legierski.net>
Add missing comments, fix datatypes, fix indentation for a function

Signed-off-by: Peter Legierski <peter@legierski.net>
Merge branch 'feature-context' into develop
Switch from serialize() to json_encode()
Less issues with utf8 and compatibility

Signed-off-by: Peter Legierski <peter@legierski.net>
Merge branch 'feature-json-encode' into develop
Merge branch 'develop'