mount: Refactor mastercomm::fs_connect() function

This commit makes use of existing tools which simplify sending and receiving
network packets during a process of registration of client in master server.