Update popover handler so that it pulls toc info from the pi api and title from article api. Will need to be refactored into deferred and promises and abstracted to work with the public side.
Add styles for flash messages