Move file flag translation into a separate function
Add FILE_FLAG_TEMPORARY to create file that are unlinked on destruction
Reserve object ID 0 for cases if there is no object to return or accept
Config errors are not related to the content of the config file

There is no point in rerunning with --check-config.
Merge some API functions to reduce the number of function calls