Update event API to accept device_guid as pk.

Update the /events/ API to accept device_id that is the device_guid.
Add unittest to ensure functionality

Update Device model to ensure guid is unique.