Brought knod's new qubits into main files

Left dragging and other partially-implemented functionality in qubit.js