progress on porting
more porting
port handle_newline() and append_newlines()
first basic test almost working
on test failure, also print source text
Merge branch 'master' of github.com:kjk/stmd