Change teardown sequence for model_initiator.py

- Fix Sanji-IO/sanji#26
- Modify mqtt.py to use env variables (Docker support)