Added instant preview of contours

Yeah that was mostly it. Also some bug fixes.

I still think it might not work with tracking, but I guess we'll have to
see whne we havethe experiment setup again.