Refactor the application to use a fake API server