Only test q if in a node.js environment.
Rename thread.js back to parallel.js
Make parallel.js browser ready.
Add client-side testing framework.

Fix #21.