device log api

REQUIRES DEVICE LOG REINDEX to add user_id field
makes sense. actually the only reason I hadn't merged was that i was worried about the migration. i'll let @dannyroberts take care of that. also i'm @czue :)