split server code in several files
fixed warehouse search rest API