Port from eel
Most of the things there are already in glib, or they are already easy enough to have it directly in the code, or we should move them to glib.
So port the functions in eel inside nautilus in order to remove the whole eel.
The port should be done one function at a time
Bugzilla link: https://bugzilla.gnome.org/show_bug.cgi?id=775092