Add rudimentary API & implementation of parsing domain config