WIP: adding support for loader plugins

TODO:
 - Add tests
 - Reduce the size to stay < 5kB !!!