Redo resource system (2/2) -- supports icon themes now.
This also fixes the stuff the previous commit broke. And everything
looks a lot nicer now :)