update wifi manager app.

- add the more generic way to connect
load the apps first, and then launch the detection service.
correction of the refresh machines function.