Add Basestar class for use in external modules

Basestar class can be extended by external drivers/adaptors, and can provide convenience functions and bindings.