Modify `avatar` interface. Fix bugs in `likes` and `urlFor`.

Use fn always as the second argument.
urlFor was crashing with null options.
Add unittest for Blog class