Fix some tests
Adding member stats to the API
Adding leave project API
Add db_index to key field in history_entry
Refactoring owner permissions, now only is_owner memberships are considered as owner users
Refactoring the filtering by permissions with django-1.7 djorm-pgarray features
Fixed failing tests