prevent logging of favicon and robot request errors

Because these error notices will litter the error log if the respective files aren't present. Also added some comments in the code