Move some common Twig macros from WebBundle to ResourceBundle.

Fixes #1841.
shouldn't the pagination macro be here too? or is it already implicit here?