fix possible segfault when opening browser
use json_spirit library instead of JsonBox
add FBGraph pointer to private data
add permissions as root directories