added restify for api server
file structure refactoring