Make FairMQSampler generic, and remove fairroot dependency from fairmq.

- Make FairMQSampler generic.
- Remove fairroot dependency from fairmq.