Clear item now supports function urls

Backbone supports urls as functions.
It is useful that clearItem supports the same behaviour.