Merge pull request #21 from jaumeortola/master

fixed bug for concurrent replament pairs
changelog
add OSGi support
Merge pull request #25 from hlavki/master

Add OSGi support.
The output makes sense. Not a bug.:
replace link with full reference (fix issue #29)
solved bug with replacement pairs and distance=2