Use blocks instead of a delegate
use a typedef enum for QoS values
make travis:ci run the test
Merge pull request #1 from jmesnil/blocks

Blocks