Removed cons_create from console.c
Moved static function in console.c
Free windows on exit
Fixed indenting in ui/core.c
Removed whitespace in command.c
Refactor _cmd_close