Added a method for finding and releasing all the resources of a specific account
Refactoring and polishing of the am_manager tests
Refactoring with respect to account/slice deactivation.