API change (plugin now return a function)

See changelog for more informations

poke @jonathanong
v2.0.0