Extract-to-lib rdebug options parsing, add tests

This is for issue [#57].  I took the feedback from deivid-rodriguez to rewrite some tests and squashed out some of my old commits.