Split local_effect_AGG() into random_LEG() and LEG_to_AGG()

This allows the (very small) LEG dict to be exported to JSON and stored in much
less disk space, then converted to a Noisy_AGG when needed.
updated command line script to create LEGs instead of AGGs