Update quick-links on clicking Mark/Unmark on popup.

Marking/unmarking now happens through regular functions in the
background page instead of through message passing.

All functions in the marking/unmarking chain now accept
callbacks. Quick-links are updated through a callback which takes care
of all the earlier timing issues.