Add get next instruction to libudi-java API.

- also move Doxygen for libudi exported functions to
  libudi.h