clean application_helper a bit

* remove unused methods
* simplify in gravatar_icon