Port to the new API done :)

Signed-off-by: Agustin Zubiaga <aguz@sugarlabs.org>