Towards a full ab initio theory of strong electronic correlations in nanoscale devices