Various fixes for publish and app loading
Merge pull request #706 from isuftin/master

Various fixes for publish and app loading