usage stats: Send device id in backend logs
Created by: attfarhan
The device ID is required for Amplitude events. We have backend events that didn't have the device ID passed down, so this PR accesses it from the request cookies and uses it when logging backend events.