Tidy up nanomsg class API; add unmounting for Linux.