Some improvements, optional JSON reporting

  * deferring now works properly and it can be disabled
  * large messages are now split into submessages (160 char limit)
  * added optional JSON status reporting
Renamed script.