Add rails resource, and start to configure resources.js
Add logic to make favorite button work, and to store new movies in the database, or find them if they already exist in the database.
Fix typo causing any insert on the favorites table to fail.