operate: fix memory issues
- Fix memleak of not free'd json_tokener_parse memory
- Make read-only memory const
Note that this commit changes the operation input argument from 'char *' to 'json_object *', which breaks older dynamic_operate implementations from outisde the bbf source tree.
Signed-off-by: Daniel Danzberger daniel@dd-wrt.com