Initial implementation of favorite functionality

Hasty initial implementation of quote favorite functionality. Works but
code is not at all pretty. Also the UI needs some tweaking. All this
will be corrected in future commits.