+ towards generic add/edit
+ take and render template from config object
+ take foreign entities from config object, fetch and add them into the form
+ get json from form
+ stuck now - how can we genrically clean the json for sever and denormalise json for indexeddb?
+ towards sync- upload
+ reading from IDB
+ handling cases of add, edit, delete
+ Upload - translating foreign ids from offline to online
+ just formatting