Modified setMockRespond to accept function as arg to be exexecuted by web-server.js

Signed-off-by: Daniel Koo <danieljamin.koo@gmail.com>