Merge pull request #145 from chrox/master

guard wrapPos when up-skipping to avoid infinite loop
store upSkip position before skipping
refactoring: move rfdraw and getAutoBBox to koptcontext module
add optimizing functionality ('copy' mode in k2pdfopt)