Basic version of ri_wrapper - requires term ID>URI mapping changes and more testing.