Update POM version numbers to 5.0.0-beta2

Excluded for now; this should be the very last PR to go in before tagging 5.0.0-beta2.