Check out this technical reference to understand in detail how the SAMS server works and can be developed further.
sams.factory– System Application Factory
sams.auth– Client Authentication Methods
sams.sets– Internal Service for Sets
sams.storage– Internal functionality to store Asset Binaries
sams.assets– Internal Service for Assets
sams.utils– Server side utils