Made structure for RESTful server and added question query