Added twig function, refactored code
Made plugins ready for packagist
Composer support for plugins