Complete change of structure to a dedicated Node.js application. Much more sane now.