changed responseJSON to responseText in nopwd spec

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

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

Signed-off-by: Gideon Farrell <me@gideonfarrell.co.uk>
Add hash.js + spec

Hash is just basic encryption functions.

Signed-off-by: Gideon Farrell <me@gideonfarrell.co.uk>
Added a getUserId function to nopwd and added a suitable spec

Signed-off-by: Gideon Farrell <me@gideonfarrell.co.uk>
Test for premature cToken retrieval in nopwd

Signed-off-by: Gideon Farrell <me@gideonfarrell.co.uk>
Added a function to prepare auth data in nopwd and appropriate spec

The function prepareAuthData(uToken) returns an object containing the userId and a hash of the salted uToken, ready to send to the server.

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