Changed dependencies to have no UI.
Ideally remove all eclipse dependencies in due course.
Added cloning of palette.