DMFT solver for layered, strongly correlated nanostructures