updates for 4.0

I updated all of the modules except bucket, because I'm not sure how to go about doing it. It uses a different version of rule, which has two parameters. Other than that, everything should be updated for 4.0.