Cleaned up the code a bit. Moved cutpoint related stuff out of htsp and into separate file under dvr.