Bug 1025565 - Only render the necessary icons when dragging. r=kgrandon

Dragging an icon previously caused all icons from the first icon that needs
re-rendering to the end of the grid. This makes sure that only the icons
that are affected by the rearrangement are re-rendered.
Jshint dosn't like these defined so many times. Perhaps we should just define once in the top level function?