Port spell plugin to new menu api

This needs to be checked and tested with a proper installation
wip: port external tools to new menu api
Make library executable
wip