Adds RESTful API; Reorganize source files.