Move apps.getSelf() to startup (bug 981235)

This is in preparation to start
validating receipts.
Merge pull request #13 from kumar303/startup

Move apps.getSelf() to startup (bug 981235)