Major refactor of SAMR functions
Refactor Samba models and SAMRConnection