Merge/json api related commits

cc @georgestephanis 
`is_jetpack_site` some times returns the blog_id :disappointed: