Convert designer/js/utils to commonjs

* converted the utils lib to commonjs module format from requirejs.
* replaced the implementation of `getQueryStringVariable` with a version
based on `querystring` from the node standard library.
* started a test suite.
Convert designer/js/togetherjs to commonjs