newui: Refactor adapters using base adapter

Fixes olgabrani/synnefo#61