Fix some race conditions
Fix some race conditions

 - /dev/lxd should be functional by the time we spawn containers
 - Mixed log messages during REST API initialization

Signed-off-by: Stéphane Graber <089afc6d81f66f1168a9849e15660feae286e024@ubuntu.com>

jsavikko/lxd,techtonik/lxd,Skarlso/lxd,pcdummy/lxd,Skarlso/lxd,erikmack/lxd,jsavikko/lxd,Skarlso/lxd,hallyn/lxd,erikmack/lxd,techtonik/lxd,georghopp/lxd,lxc/lxd,atxwebs/lxd,atxwebs/lxd,lxc/lxd,stgraber/lxd,hallyn/lxd,lxc/lxd,atxwebs/lxd,mjeanson/lxd,mjeanson/lxd,stgraber/lxd,stgraber/lxd,pcdummy/lxd,stgraber/lxd,mjeanson/lxd,stgraber/lxd,jsavikko/lxd,hallyn/lxd,georghopp/lxd,hallyn/lxd,stgraber/lxd,lxc/lxd,atxwebs/lxd,hallyn/lxd,hallyn/lxd,pcdummy/lxd,erikmack/lxd,lxc/lxd,lxc/lxd,georghopp/lxd,lxc/lxd,stgraber/lxd,Skarlso/lxd,techtonik/lxd