Refactored ampacheCommunicator class.
Refactored usages of Directive (now it has stronger typing).