Started an attempt at implementing element_set_attributes().
Added theme_email(), theme_hidden(), theme_password(), theme_textfield() and theme_textarea(). Changed drupalgap_form_render() to use new theme functions.