Add a legacy hook to ImageJ constructor

It could be useful to perform actions in response to the creation of a
new ij.ImageJ. This is now possible.