Implement more hardware-related functions

Signed-off-by: Kai Blin <kai@samba.org>
Add basic server infrastructure

Signed-off-by: Kai Blin <kai@samba.org>