transport.js Transport.send was missing the `data` parameter, so would never have sent anything.

Signed-off-by: Gideon Farrell <me@gideonfarrell.co.uk>
Refactored transport-spec.js

Made it a little more DRY.

Signed-off-by: Gideon Farrell <me@gideonfarrell.co.uk>
Altered transport.send to use endpoint() by default

Now transport.send calls transport.endpoint() on the first `resource` parameter, to transform it into a URL. This has been done because transport should always be connecting to NoPWD.

Signed-off-by: Gideon Farrell <me@gideonfarrell.co.uk>
Adapted nopwd.js for changes in transport.send (previous commit)

Signed-off-by: Gideon Farrell <me@gideonfarrell.co.uk>
Created a main.js file to configure require for the package

Signed-off-by: Gideon Farrell <me@gideonfarrell.co.uk>
Created cache.js

Cache is a class which will handle all local storage requirements. It's mostly a wrapper for simpleStorage functionality, but adds prefixing to make sure nopwd doesn't pollute other namespaces.

Signed-off-by: Gideon Farrell <me@gideonfarrell.co.uk>
Added nopwd.login

login(uToken) sends a login request to the server, with some simple callbacks (yet to be implemented).

Signed-off-by: Gideon Farrell <me@gideonfarrell.co.uk>
Started writing a spec for cache

Currently only tests Cache.prefix

Signed-off-by: Gideon Farrell <me@gideonfarrell.co.uk>
Include spec/cache-spec in test.js

Signed-off-by: Gideon Farrell <me@gideonfarrell.co.uk>
Include cache in nopwd

Signed-off-by: Gideon Farrell <me@gideonfarrell.co.uk>