This is shorter and pollutes less the code.
This PR adds a first developer documentation regarding how to extend the scripting API.