userState and newName is undefined

closes #1131
closes #998

- Add missing keys in `msg.json` file
- Add more descrictive error message when reporting back to the user.
- Fixed undefined variables in saveApp.