Refactoring: Use latch classes from php-latch-sdk repository, add params...

... to listener service, fix identation and trailing spaces