We need some more fields in target struct to support weldr API. This commit introduces them. Also a bit of cleanup is done.
These are not currently implemented in the backend, but shows how the API will look like. Signed-off-by: Tom Gundersen <teg@jklm.no>