More SDL binding. Text editor demo upgraded a bit.