add completed Flag to FileMeta, send new-message Event when fileupload is completed, add date to public key
fixed bug in migration of submodels, added more error logging to tests