Changed _drupalgap_form_validate() to properly handle fields, not just flat elements. Changed drupalgap_form_element_item_create() to attach the element's 'required' property to the item object. Changed _drupalgap_form_submit() to use a normal alert on form validation errors.