setup node restful server; move modified interval-query lib to lib folder;