register unauthenticated user actions in the resources table, and allow unauthenticated users to like and dislike images