Move the http-based api to sub folder
add socketio based api.
Merge pull request #3 from happyili/master

Add api with socketio.