Generalize error handling, improve logging, fix cors
Close device on failed read/write
Add logging
Add locks arond hidapi calls
Quick fix for formats fn in easyloggingpp