Fixed problem where adding a record doesn't close the dialog even if self.closeDialogAfterSubmit is set
Fixed tempDialog so that hide() still returns a promise, like its ancestor does
Cosmetic changes
Todo updated
Added important hooks to manipulate data received and data before is sent
Taken out useless includes
Updated TODO list