Add delete_undef_values() function

Hi, 
this function may be used to filter-out unused parameters from hash. It then plays nicely with `ensure_resource()` - see motivating example i docs. I leave this pull request if you consider this function useful enough. Tell me if i've reinvented the wheel.

Regards.