Automatically bind commands for driver and adaptor

Also adds `Base` class to extend adaptor and driver from.