Added hosted app (store) and modify format to include installOrigin in hosted applications

Moved local-apps.json to samples/local-apps.json