Added a testing function to router.js. we need to add handlers to the server so it can send back appropriate json responses when a client logs in or uses our search function