anv: various fixes & cleanups
What does this MR do and why?
These are a bunch of changes I have on an internal branch that keeps on growing.
It's a bit all over the place but should be simple to review.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.