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

This is in preparation to start
validating receipts.