Refactor protocol to actionscript event, when receiving protocol from server, Session will dispatch it to all it's listener; change progenAS to generate new protocol code.