Ai law overhaul

Major AI law module overhaul.

Streamlines a lot of stuff and makes them easier to write and manage.

Currently untested, postponed until next version.