Added initial version of regfio interface, borrowed from Samba project.
Library has all write capability stripped, and all Samba dependency has either been removed, or included in the smb_deps code.