Can open sources after start. Introduced logging.

Sources can be opened after starting up, i.e. source selection no longer
limited to CLI. Alongside, started introducing proper debug logging.