cwmpd: change initialization sequence.

This got very confused at some point, with arbitrary startup steps depending
on --port for no reason, and the CPE state machine doing its .Startup()
before we had even bound all our local ports, and even opt.close_stdio
potentially taking effect before ports were bound (which would defeat the
purpose).

In particular, it looks like we would start the first ACS request before
actually starting to listen on the rcmd or dialui ports, which is quite
confusing and might cause b/32815220.

Change-Id: I34be88d57d080888877337939a1655bdbcb11ca1
2 files changed