[server] Add testing API endpoint which bounces back data passed to server
In use for testing, add a dummy API route which returns data passed to it with an optional error message and delay time.
This endpoint should return a 404 when server is not running in dev mode.
Edited by Sam Bryant