Daniferrito

Don't merge this one untill the code has been reviewed and works completelly. Also some parts are unfinished, like the delete entity, which should delete the nodes as well.