changed how plugin settings works, now uses json.

Signed-off-by: Miethpo <miethpomail@yahoo.co.uk>