changed directory structure
added flask server code

changed directory structure and changed the flask server code.