[CHORE] Delete trailing whitespace.
[CHORE] Bugfix and styleguide compliance.

Define vaultClient variable. (Was used as a global.)
Remove superfluous newlines as per airbnb/javascript.
Name of test-suite should be name of class.
[CHORE] API changes and test improvements.

Changed structure of data returned by APIs.
Use assert.ifError instead of assert(!err)
Use assert.equal(typeof foo.bar, 'string') instead of assert(bar in foo).
Callback function is called "done" by convention.
Merge pull request #1 from justmoon/master

API changes, cleanup, test improvements