SocketAPI: Added REGISTER_PATH and UNREGISTER_PATH

to inform the plugins about the top sync directories.

Also cleaned the code a bit.
nautilus plugin: Adopted to latest socket api changes.