forum-ports-config: Use configuration variables to set services ports

When using a custom mongo host/port which doesn't use the default mongo port (like mongolab instances), a lookup of the default mongo port doesn't work. Same issue with elasticsearch port.