fixed all crashes and added helpers for debugging

- AcaniChat IOS was crashing for a variety of reasons, fixed all of them so that app actually works.
- Added helpers for debugging in node and IOS so its much easier to fix errors.