Genericizes iframe message to allow for new types