Major reworking on DeployPackage class

- Refactored running Tasks check : the method to get every tasks which are running and defined on the package,
  has been moved to the Task class.
- More permissions checks.
- Some methods have been rearranged for readability