Reading code at server rather than client where appropriate.
testsuite paths are now absolute rather than relative.
Removed unnecessary file-read from json api test.