Add support for returning distinct values only.

Hi,

I've made a simple hack to allow filtering for distinct vaules. It's needed for list_filters in the admin interface to work properly. 

Btw, do you see an option to change this project to one of the well known open source licenses like GPL?

Best,
Karsten