Open quantum dynamics from a path-integral perspective