Create json api server, add routes