Factored base request into a separate module.
Build on prepublish. Npm text now invokes cake test.