implementation of the web front-end for marblebot, including making the queue thread work.