Merge branch 'release/0.2.5' into develop
small fixes
Resource.deactivated scope
Add after_deactivate callback
bump version
Merge branch 'release/0.2.7'