Move debugging functions into proper autoload dir

Still not sure if debugging is going to work but here is another try