Update listener.rb

We are using project identifier as a channel name, so we modify channel_for_project to extract the project identifier.