add cache dir to git
extract render_front_page_json to index class
extract index.get_json()
add republish script
fix #44, add prepublish script and doc

`node tools/prepublish` to fetch index.json