Stuff.
REFUCKTORING
ACTUALLY WORKS NOW.
Refactored runWebMachine to return values, to be encoded later :3