extend JMS module to be a bit more generic

I added concept of destinations to make possible to express both queue and topic.
Updated compile example as well as documentation.