moving caching of js functions into the js_runner_t and out of the protocol layer, func_t objects now store the source and timeout rather than id and timeout
reverting debug change to Makefile
cleaning up from code review comments