started to unpick the deep coupling between script engine and chat client, added IChat* interfaces