update to blacklight 5.2.0 and fix deprecation warnings

(can't merge this until Blacklight 5.2.0 is actually release, but here's the changes I had to make)