Feature/iotcore 104 operation logs

Add logger module and middlewares to setup loging.

Add debug and error logs.
Fixed in 57cbf76