fixed all crashes and added debugging info

fixed all crashes in the IOS and node repos so that the demo actually works.

- NSManagedContext saving needed more debugging info
- missing userID set in our initial ACUser, causing a crash
- some functions were not declared in correct scope on node server
- added debugging info to server and client so its much easier to follow.