JBIDE-18847 : Extract discovery code out of project examples

and moved Central Configuration API back to central.

Signed-off-by: Fred Bricon <fbricon@gmail.com>