Changed return type from PluginResult to boolean
Fixed callback not fired
convert returned string to json
Calling a callback when a thread is initiated is wrong. It will close the connection between the plugin and the script and throws "second callback called" warning
Merge branch 'patch-1'