Add a dev console, few optimizations on gui. Solve gui input crashs. 

Signed-off-by: Karang <arthur.hennequin@free.fr>