Factor out entry point helper and apply to marconi.cmd.server

Change-Id: I3be826366948348430ebd286527ead5fec6413b9
Merge "Factor out entry point helper and apply to marconi.cmd.server"