FitWindow called only when path changes

Also modified updatemanager a bit to use anonymous functions for the network replies.