fixed bugs that were causing AcaniChat to crash, also added debug information

- NSManagedContext saving needed more debugging info
- missing userID set in our initial ACUser, causing a crash
- functions were not declared in correct scope on server
- added debugging info to server