restructure api and internal packages for JDT plugin