Add dspace.js, tests, and docs.

Refs #162