Abstract/refactor the icon code
Abstract/refactor the icon code

 * Fix animating the icon for multiple tabs at the same time.
 * Don't set the icon on page load if it's animating.

Rowno/rearm,Rowno/rearm