Favorites js

Added view bits in css, html, a bit of js to make the favorites work.

Changes just a bit on the backend as well