Tweaked rules for generating keywords

on/off keywords are now handled separately. If a keyword appears several
times, a counter is appended
Use agr extension for temporary edit files
Don't use checks when updating properties
Reworked regexes for AgrSet properties
Added property dict methods to AgrGraph