record support / plugin class

added plugin class to types.xml
added chat.records.php / chat.records2.php
added endmap records, map win