Implemented the favorites functionality

* Favorites are saved persistently with localStorage