Add helper method to invoke a function.
* src/oomhelp.cpp, src/oomhelp.h (invoke_oom_method): Invoke a generic method without arguments with an optional return value.
I've used this during some experiments calling Delete() on
attachments. Could be useful for other things.