py4web; new fitting json function and dedicated json encoder
Allow to choose between return data to template or as json dump. Json is needed to unit tests and API call Encoder allow to call object as_dict fucntion if object is not serializable. Need that these objects have as_dict implemented