Cherry-pick the following commits from release-0.4:

* Update requirements to stable/havana.
* made code preparations for build (modified)
* Made changes for nonroot daemons run
* Update requirements.txt for v0.4

Change-Id: I8cc4ee585ae35276b2fe0c81be5e45cb1997b4a2