[ticket/61] Implement pagination event

In the end, #66 was a sprintf issue. 
For some reasons, escaping % with % had no effect on named variables (%1$s), so I switched for str_replace templating.

Fix #61 
Fix #66