Support `delay` option for 'proxy' mode

Added delay for 'proxy' mode to test application on top of the local (and unrealistic quickly) api.
Update modes.js
Added test for proxy delay.