Added new file interfaces as part of #9
Temporary work.
Merge branch 'master' into 20140110

Conflicts:
	agent/src/agent.js
	agent/src/client.js
Merge from master.
Refactoring and changes #8, #9, #12

Refactoring of rest interface and file interface. Added upload and
download resources (not really used for anything good yet).

Also tried to introduce mocha as testing framework, gave up due to too
many dependencies (client has too many dependencies it feels like), may
refactor in the future to simplify.
Merge branch '20140110'