Bug 1009793 - replace cardsByOrigin w. cardsByAppID for card/app lookup

Use appWindow.instanceID to associate Card instances and their elements, replacing the cardsByOrigin dictionary with cardsByAppID. 
Why not use card.app.instanceID?