fixes #1794 Rename of app ensure name is unique
More bug fixes and better error messages.
Publish now shows useful errors in most cases, added a missing l10n string, trim app names, removed weird while loop on getting names for publish
review
Merge pull request #1795 from ScottDowne/t1794

fixes #1794 Rename of app ensure name is unique