Move the http-based api to sub folder
add socketio based api.