split main.cc
add rapidjson-0.11
re-org files