Changed dpm() to use console.log if we're in Ripple for pretty printing. Fixed js_yyyy_mm_dd_hh_mm_ss() and improperly declared variables ending up in global scope. Changed drupalgap_entity_render_content() to use the drupalgap display mode if it is present, use the default otherwise, and pass the display mode to drupalgap_entity_render_field(). Changed drupalgap_entity_render_field() to take in and use the display value instead of assuming default and then pass that along to hook_field_formatter_view().