remove unused parseArguments method; split into client/server/common; add jsdoc and regenerate API docs