Lots of little things to adjust and improve here. Do you want to start a github repository for this, or similar? [I am not sure what the state of openlilylib is presently.] Worth having.
Need to be able to pass all the lilypond command line args to the server, such as include paths and so on.