small extensions and one api change. (introduced "factory" endpoint)

added factory endpoint to be able to serve different service requests
return more then one port, for web servers there is more then just 3306