JSONResponseHandler moved into lib. event and user functios now extends JSONResponseHandler. event_functions completed