moved decode_json and compile_jquery_tmpls methods from Fanforce::Api