Configurable PUSH and PULL addresses
Fix more JSON parsing issues
Handle (some) error cases