Convert search url parser into object

This allows better passing it as return value and consolidates all
access to it's values.
Simplify SearchOptions object code
Wrap some long lines