Fixing stuff

No more stack overflow in move function
Fix the gif generation being launched too soon (resulting in partial
frames in animation)
Add the ability to keep temporary files in server app