Serious code refactoring. Moving to using LanBox-JSONRPC middleware.