Changed _drupalgap_form_render_element() to setup a default variables to send to the theme() function, modify variables according to special case element types, and map the element types to their apppropriate theme functions (if necessary). Left aside the image and submit elements for now as special cases.