allow using a function to resolve the id link in special cases
support HAM links in oracle stuff and add org-mode key mapping
(overrides C-c C-o)