Bigger refactor.

Switch to thor gem for cli argument handling. Pass all ocr arguments via ssh. Handle local extraction