delegate for call backs, fixed bug in SimpleJSON

Needed to have call backs for Post and Get functions. Also fixed issue
in SimpleJSON where trying to get the key of a non-existent node created
a fatal error.