Changed scope of AppEntry to prototype, for support of multiple tabs. Regarding #595.