Refactored PubMed widget and the Publications page

Synchronized with the 'master' branch and updated according to comments from Dan.