Implemented thread safe sleep
Merge branch 'development' of https://github.com/pilight/pilight into development

Conflicts:
	libs/protocols/lm76.c