Merge pull request #23 from md-systems/fixedFlagDeltionWhenUserIsDeleted

Fixed flag deletion when user is deleted.
Merge pull request #34 from md-systems/redirect

#34 by Berdir: Fix to allow operation in a subfolder
Clean up automatically generated phpstorm docblock
Remove unused class imports
Import new classes
Inject Flag service from container
Removed hooks from flag.api.php that were replaced by plugins and events.
Replace Drupal static use property flagService
Add missing slash
Clean up automatically generated phpstorm docblock
Remove unused class imports
Import new classes
Inject Flag service from container
Removed flag_fetch_definition(), flag_get_types(), replaced with FlagService calls.
Replace Drupal static use property flagService
Add missing slash
Remove unused class imports
Remove unused paramater
Fix rebase conflicts
Add missing slash