"New" icon functionality for new modles

Added a functionality to course/lib.php that changes the icon of a
modle when it's new.