Add hacky functionality to client and implement serverside websocket magic needed to make that happen.
Clean up after generating PDF and PS.
Remove extraneous commented out code.
Read base url from flag.