Anybody tried mcwm? Looks somewhat promising.
"The binary is 23 kilobytes stripped. Typical resident memory use on FreeBSD on x86 is ~1200 kiB and ~1400 kiB on x86-64. It takes slightly half of that if compiled as a static binary." ~3000 lines of code. http://hack.org/mc/hacks/mcwm/