Built events API, fixed lint, made small DB changes

This should be a GET req. This function gets the beacon list for the device, and thus should not POST.