Run clang-format on NetworkManager
Rewritten ImageManager

Also added signals to update the number of pending downloads and when
all downloads have finished.
Run clang-format on ImageManager