Commit .xd file when initializing manifest

Signed-off-by: Esben Haabendal <esben@haabendal.dk>
Add unittest coverage of init command error handling

Signed-off-by: Esben Haabendal <esben@haabendal.dk>