Merge pull request #59 from jenananthan/master

fixed copy app related issue and clean up the code
Fixing issue when adding web apps in tenant mode
support to share the entitilement partial