Bugfix

Fixes a bug in server where committing a line on a client would cause 'DEFINE undefined undefined' to be added to corpus.
Body-parser middleware on server was not parsing incoming PUT request properly.