Revert "New parseOpts implementation. Needs cleanup."

Pushed to the wrong repo. Sorry.

This reverts commit 0b2fbdf8f35e6a3a457aeed8164bdc0ecd2881b5.
Clean up parseOpts scanning by introducing scanner type
Use a custom scanner instead of bufio.Scanner
Use []rune for parsing, and 'ok' instead of 'end' boolean.
Revert "Revert "New parseOpts implementation. Needs cleanup.""

This reverts commit c9824f8177f65ed7b22497399e19b62fd3b9e8bb.
Merge branch 'parseopts'