master: Add reading a configuration of custom goals

This commit adds reading the configuration of custom goals in the master
server and a very basic support for custom goals (all labels are treated
as wildcards).

Change-Id: I3cd82e94ec42021c3b527b734fa7bc7fae9b6a2f