added dequantization to encoding loop
fix intra-pred-mode coding
encode whole sequences
fix flushing CABAC
search candidate intra-pred-modes first
sync to VS2008