Implemented the favorites functionality

* Favorites are saved persistently with localStorage
Merge pull request #1 from atroberg/favorites

Implemented the favorites functionality