sql-func refactoring: single dir*_entry_add function
The function is parametric in the type of entries to be
added (file/dir/rev).
Get rid of the previous 3 (99% overlapping) functions
swh_directory_{file,rev,dir}_entry_add functions. Make storage.py use
the new function.