Initial merge suppport, improved invoice select

Signed-off-by: Malte Sussdorff <malte.sussdorff@cognovis.com>
Completed v0.7 of the merge functionality

Signed-off-by: Malte Sussdorff <malte.sussdorff@cognovis.com>