Added clean up function for pruning merged remotes and merged locals.