dbs builder: improve

* improve structure
* reflect API specification
* download baseimage if it's from foreign repo