anchor.diff:      catch
           throw:org_not_found ->
               NoOrg = bad_auth_message(org_not_found),
  -            Req1 = wrq:set_resp_body(mochijson2:encode(NoOrg), Req),
  +            Req1 = wrq:set_resp_body(ejson:encode(NoOrg), Req),
               {{halt, 404}, Req1, State};
           throw:_X ->
               {{halt, 500}, Req, State}
  
positive.code:         not_found ->
              NoCertMsg = bad_auth_message(no_cert),
              {false,
               wrq:set_resp_body(mochijson2:encode(NoCertMsg), Req), State};
          CertInfo ->
              Cert = ?gv(cert, CertInfo),
              OrgId = ?gv(org_guid, CertInfo, State#state.organization_guid),
  
negative.code: 		true -> {true, Req1, State1};
  		false -> 
  		    Msg = bad_auth_message(not_member_of_org),
  		    Json = ejson:encode(Msg),
                      Req2 = wrq:set_resp_body(Json, Req),
  		    {false, Req2, State1}
  	    end;
  