clean up snippets some more
move lots of functionality to windowed.el. not using it in terminal mode.