moved rest endpoint to console package and start server on  random port (also configurable via --port argument)