moved server-only tests to js/server/tests

this hopefully removes some future confusion about the tests
also moved some graph stuff into js/common as client-side graphs did not fully work

make logfile path accessible
allow references as function parameters
better clone some objects returned by AQL user-defined functions
improved error and help messages