Continuing refactor of service API

This version has a working domain and tag API (in memory).
All other APIs are either brokern or not impplemented.