various cleanup

cleanup content headers
don’t listen to socket
add comments
make svg test work
add some tests
return a promise instead of using a thunk
0.3.0