Standardize the JSONp response handling

The mini-framework classes as well as the independent php - processing
files standardized to offer structured output for easier Json handling.

HTML files updated to handle new response format