[jaring] Jaring-all.js: various enhancement.

* CardGridForm: add _parent properties to form object.
* Form: check and call function beforeFormSave in parent component.
* CrudButtons: destroy buttons.
[jaring] System.Media.Table: new module to view media used by module.
Ignore media directory.
System.Media: handle update.
[jaring] jx.Form: add event savesuccess, savefail, and canceled.
[jaring] jx.CardGridForm: hide form using afterFormSave.
[jaring] lib: add function to prepare fields for query.

* add function to get last inserted row from table.
* add vim fold marker.
* escape media directory with directory separator.
[jaring] System.Media.Table: use two column, table reference id and media id.

* Viewer: add form to add and remove image.
* Viewer: add request for create.
* System.Media: fix media directory path.
Merge branches 'master' and 'master' of github.com:shuLhan/Jaring
Merge branch 'master' of file:///home/ms/Copy/Repository/jaring