Comments and improvements to webrepl
Brings console based repl upto spec
After some tests, strips empty lines.