fix server compilation and clean up html
some real code now
implement empty terminal, redraw and putchar