POM: bump to pom-imagej 5.0

This restructures the parent POM dependency management,
and inherits the latest dependency versions.

It also makes the necessary code changes to adjust for
backwards incompatibilities in the imagej-common API.