Contacts enhancement

Based on #18.

This commit adds some missing methods to the
contacts database, like contacts removal
and cached image management.