updated motion2d.html to be non-port specific
added socket support for ports (play and stop)